To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.
Attributes | Values |
---|
rdfs:label
| - Quick reference of current function
|
rdfs:comment
| - To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.
|
Version
| |
dbkwik:vim/property/wikiPageUsesTemplate
| |
Previous
| |
Category
| |
Text
| |
Author
| |
Complexity
| |
Created
| |
ID
| - 273(xsd:integer)
- 1087(xsd:integer)
|
NEXT
| |
Rating
| |
abstract
| - To avoid the "Hit ENTER or type command to continue" message, I suggest that you'd better set your command line height to 2 or more, because many function definitions have a long width. Add this to your vimrc: :set cmdheight=2 nmap _F :call CurrentFunc() " side effect: register k and mark k will be changed func! CurrentFunc() exec "normal mk" " c-type code have remarkable definitions from other OO code. let l:extension = expand("%:e") if l:extension == "c" exec "normal ][%b%b" else exec "?private\\|public\\|protected\\|procedure\\|function\\s\\+\.*(" endif "TODO: maybe you need to open your closed fold at first exec "normal v$\"ky`k" exec "echo @k" endfunc " CurrentFunc Now, when you are editing a file, exit to normal mode, and type _F to see which is the current function. If you want to know or add some parameters followed by the definition, just type CTRL-O () to jump to the definition, and type `k can jump back. .cs, .pas, .c, .sql filetype is supported with this trick.
|