navigation - Custom block limiters in vim -


how can add custom word pairs mark beginning , end of block in gvim, can jump across using % (just { , })

i jump functionstart functionend , viceversa.

functionstart  <code here>  functionend 

like described others should do:

put matchit.vim in matchit.zip/plugin/matchit.vim in ~/.vim/plugin directory(mkdir ~/.vim/plugin if doesn't exist) , add line ~/.vimrc. enable jumping across keyword pairs using %.

let b:match_words = '\<functionstart\>:\<functionend\>' "keyword pairs

put these 2 lines instead if want make same keywords work vim buffers

let g:match_words = '\<functionstart\>:\<functionend\>' "keyword pairs autocmd bufreadpre * let b:match_words = g:match_words "buffer specific variable 

Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -