> 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?
Do you want to jump to th beginning of *current function*, or
tothebeginning of current *block* ? Example:
int foo() // enclosing function
{
if(...) { //enclosing block
<- you are here
}
}
?
--
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.
No comments:
Post a Comment