On Fri, Apr 2, 2010 at 12:07 PM, Rajesh Kannan <[email protected]>wrote:

> G'Day!
>
> Say I have the following code:
>
> L#
> 1  void main()
> 2  {
> 3    fun1()
> 4  }
> 5
> 6  void fun1(){
> 7  ...
> 8  }
>
> If at L3 I type '[[' (without quotes) in command mode then vim takes
> the cursor to L2.
> If at L7 I type '[[' (without quotes) in command mode then vim takes
> the cursor to L2. Should it not take me to L6 instead? Can anyone
> suggest what setting would make vim work like latter?
>
"Command mode" is what you get once you type the ':', I think you mean
normal mode.

>From the help,
[[       [count] sections backward or to the previous '{' in the first
column.
(note: "first" column) which explains the behaviour.

Maybe you want '[{' ?

-- 
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

To unsubscribe, reply using "remove me" as the subject.

Reply via email to