diff options
| author | Justin M. Keyes <justinkz@gmail.com> | 2018-10-30 01:01:29 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-30 01:01:29 +0100 |
| commit | 500345aea2ef88b45e0905043ed435ad4676bcef (patch) | |
| tree | c7def1cc1de8c7c869560eb9770ee6067ae1323d /runtime/ftplugin/vim.vim | |
| parent | f5406dfe7772dca82e31f27c042c5718198f0ec8 (diff) | |
| parent | 18ce6c90636abae594905eecf2e225124ae8ab17 (diff) | |
| download | rneovim-500345aea2ef88b45e0905043ed435ad4676bcef.tar.gz rneovim-500345aea2ef88b45e0905043ed435ad4676bcef.tar.bz2 rneovim-500345aea2ef88b45e0905043ed435ad4676bcef.zip | |
Merge #9172 from justinmk/vim-d473c8c10126
Diffstat (limited to 'runtime/ftplugin/vim.vim')
| -rw-r--r-- | runtime/ftplugin/vim.vim | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index eb8061d84f..34f5eb6db1 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -70,10 +70,10 @@ if !exists("no_plugin_maps") && !exists("no_vim_maps") 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> + 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 nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> @@ -90,8 +90,7 @@ if exists("loaded_matchit") \ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' . \ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' . \ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' . - \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' . - \ '(:)' + \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' " Ignore syntax region commands and settings, any 'en*' would clobber " if-endif. " - set spl=de,en |