Monday, November 1, 2010

RE: [HELP] vim moving code block problem

Zhanglistar wrote:
> Vim manual says that to move to the start of the outer block
> use the "[[" command. But when I use "[[", it jumps to the
> head of file, which is a C program. And I when I use "]]", it
> jumps to the end of the C file.

Vim is not a compiler and it has no idea where functions start
and stop. Your code probably differs from the style expected by
Vim, my guess being that your '{' is not in the left margin (see
':help 29.3').

John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: