diff options
author | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:09:24 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2008-06-24 22:09:24 +0000 |
commit | c1a11ed54c7974b74be38f2aef6a200d7cfc878e (patch) | |
tree | cbd3d302d09444426d21d905b56dbfafb6cf2497 /runtime/ftplugin/vim.vim | |
parent | 446cb837a017fc1c1b144cb5c2a35cb90abfbbcf (diff) | |
download | vim-git-c1a11ed54c7974b74be38f2aef6a200d7cfc878e.tar.gz |
updated for version 7.2a
Diffstat (limited to 'runtime/ftplugin/vim.vim')
-rw-r--r-- | runtime/ftplugin/vim.vim | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index 78fb6ec3a..ca66597d8 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Vim " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2006 Sep 26 +" Last Change: 2008 Feb 27 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -33,14 +33,20 @@ endif setlocal commentstring=\"%s " Move around functions. -noremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR> -noremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR> -noremap <silent><buffer> [] m':call search('^\s*endf*\%[unction]\>', "bW")<CR> -noremap <silent><buffer> ][ m':call search('^\s*endf*\%[unction]\>', "W")<CR> +nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR> +vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR> +nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR> +vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "W")<CR> +nnoremap <silent><buffer> [] m':call search('^\s*endf*\%[unction]\>', "bW")<CR> +vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "bW")<CR> +nnoremap <silent><buffer> ][ m':call search('^\s*endf*\%[unction]\>', "W")<CR> +vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "W")<CR> " Move around comments -noremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> -noremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> +nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> +vnoremap <silent><buffer> ]" :<C-U>exe "normal! gv"<Bar>call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> +nnoremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> +vnoremap <silent><buffer> [" :<C-U>exe "normal! gv"<Bar>call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> " Let the matchit plugin know what items can be matched. if exists("loaded_matchit") |