in normal mode, type:

[{

If you are deep in the nested blocks, you can use count with this
command:

f() {
  if() {
    while () {
      // _ cursor here
    }
  }
}

with cursor at _ position, use 3[{ to jump to first
opening bracket of f(). Another possibility - [m

There are a lot of such useful motions. Not complete list:

:help [{
:help ]}
:help [(
:help [)
:help ]m
:help [m
:help ]M
:help [M
:help ]]
:help [[

-- 
Anton

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to