From 7d2fbb9012e983ac013b6352b4cf8ea7a3a2f2b4 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 29 Oct 2018 23:56:04 +0100 Subject: vim-patch:93a1df2c205c Update runtime files. https://github.com/vim/vim/commit/93a1df2c205c8399d96c172d9483e0793d32892a --- runtime/ftplugin/vim.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'runtime/ftplugin') 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 [[ m':exe "normal! gv"call search('^\s*fu\%[nction]\>', "bW") nnoremap ]] m':call search('^\s*fu\%[nction]\>', "W") vnoremap ]] m':exe "normal! gv"call search('^\s*fu\%[nction]\>', "W") - nnoremap [] m':call search('^\s*endf*\%[unction]\>', "bW") - vnoremap [] m':exe "normal! gv"call search('^\s*endf*\%[unction]\>', "bW") - nnoremap ][ m':call search('^\s*endf*\%[unction]\>', "W") - vnoremap ][ m':exe "normal! gv"call search('^\s*endf*\%[unction]\>', "W") + nnoremap [] m':call search('^\s*endf\%[unction]\>', "bW") + vnoremap [] m':exe "normal! gv"call search('^\s*endf\%[unction]\>', "bW") + nnoremap ][ m':call search('^\s*endf\%[unction]\>', "W") + vnoremap ][ m':exe "normal! gv"call search('^\s*endf\%[unction]\>', "W") " Move around comments nnoremap ]" :call search('^\(\s*".*\n\)\@ @@ -90,8 +90,7 @@ if exists("loaded_matchit") \ '\<\(wh\%[ile]\|for\)\>:\:\:\,' . \ '\:\:\,' . \ '\:\:\:\,' . - \ '\\)\@!\S:\,' . - \ '(:)' + \ '\\)\@!\S:\,' " Ignore syntax region commands and settings, any 'en*' would clobber " if-endif. " - set spl=de,en -- cgit