sponsor Vim development Vim logo Vim Book Ad

vim_movement : Movement over Vim functions with ]m etc.

 script karma  Rating 12/6, Downloaded by 1288  Comments, bugs, improvements  Vim wiki

created by
Ingo Karkat
 
script type
ftplugin
 
description
DESCRIPTION
This filetype plugin provides movement commands and text objects for Vim
functions.
This is duplicated from $VIMRUNTIME/ftplugin/vim.vim, using the (IMHO) correct
mappings "move to method", not "move to paragraph".

USAGE
                        Move around Vim functions:
]m                      Go to [count] next start of a function.
]M                      Go to [count] next end of a function.
[m                      Go to [count] previous start of a function.
[M                      Go to [count] previous end of a function.

im                      "inner method" text object, select [count] function contents.
am                      "a method" text object, select [count] functions, including
                        the function definition and 'endfunction'.
 
install details
DESCRIPTION
This filetype plugin provides movement commands and text objects for Vim
functions.
This is duplicated from $VIMRUNTIME/ftplugin/vim.vim, using the (IMHO) correct
mappings "move to method", not "move to paragraph".

USAGE
Move around Vim functions:
]m Go to [count] next start of a function.
]M Go to [count] next end of a function.
[m Go to [count] previous start of a function.
[M Go to [count] previous end of a function.

im "inner method" text object, select [count] function contents.
am "a method" text object, select [count] functions, including
the function definition and 'endfunction'.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim_movement.vba.gz 1.00 2012-04-04 7.0 Ingo Karkat Initial upload
ip used for rating: 18.97.14.83

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github