Mercurial > vim
comparison runtime/ftplugin/vim.vim @ 14695:b178e2039b2d
Update runtime files.
commit https://github.com/vim/vim/commit/93a1df2c205c8399d96c172d9483e0793d32892a
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 10 11:51:50 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 10 Sep 2018 12:00:07 +0200 |
parents | 5c5908e81e93 |
children | 94eda51ba9ba |
comparison
equal
deleted
inserted
replaced
14694:0cda70849b92 | 14695:b178e2039b2d |
---|---|
65 " Move around functions. | 65 " Move around functions. |
66 nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR> | 66 nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR> |
67 vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR> | 67 vnoremap <silent><buffer> [[ m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "bW")<CR> |
68 nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR> | 68 nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR> |
69 vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "W")<CR> | 69 vnoremap <silent><buffer> ]] m':<C-U>exe "normal! gv"<Bar>call search('^\s*fu\%[nction]\>', "W")<CR> |
70 nnoremap <silent><buffer> [] m':call search('^\s*endf*\%[unction]\>', "bW")<CR> | 70 nnoremap <silent><buffer> [] m':call search('^\s*endf\%[unction]\>', "bW")<CR> |
71 vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "bW")<CR> | 71 vnoremap <silent><buffer> [] m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "bW")<CR> |
72 nnoremap <silent><buffer> ][ m':call search('^\s*endf*\%[unction]\>', "W")<CR> | 72 nnoremap <silent><buffer> ][ m':call search('^\s*endf\%[unction]\>', "W")<CR> |
73 vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf*\%[unction]\>', "W")<CR> | 73 vnoremap <silent><buffer> ][ m':<C-U>exe "normal! gv"<Bar>call search('^\s*endf\%[unction]\>', "W")<CR> |
74 | 74 |
75 " Move around comments | 75 " Move around comments |
76 nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> | 76 nnoremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> |
77 vnoremap <silent><buffer> ]" :<C-U>exe "normal! gv"<Bar>call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> | 77 vnoremap <silent><buffer> ]" :<C-U>exe "normal! gv"<Bar>call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> |
78 nnoremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> | 78 nnoremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> |
85 let b:match_words = | 85 let b:match_words = |
86 \ '\<fu\%[nction]\>:\<retu\%[rn]\>:\<endf\%[unction]\>,' . | 86 \ '\<fu\%[nction]\>:\<retu\%[rn]\>:\<endf\%[unction]\>,' . |
87 \ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' . | 87 \ '\<\(wh\%[ile]\|for\)\>:\<brea\%[k]\>:\<con\%[tinue]\>:\<end\(w\%[hile]\|fo\%[r]\)\>,' . |
88 \ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' . | 88 \ '\<if\>:\<el\%[seif]\>:\<en\%[dif]\>,' . |
89 \ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' . | 89 \ '\<try\>:\<cat\%[ch]\>:\<fina\%[lly]\>:\<endt\%[ry]\>,' . |
90 \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' . | 90 \ '\<aug\%[roup]\s\+\%(END\>\)\@!\S:\<aug\%[roup]\s\+END\>,' |
91 \ '(:)' | |
92 " Ignore syntax region commands and settings, any 'en*' would clobber | 91 " Ignore syntax region commands and settings, any 'en*' would clobber |
93 " if-endif. | 92 " if-endif. |
94 " - set spl=de,en | 93 " - set spl=de,en |
95 " - au! FileType javascript syntax region foldBraces start=/{/ end=/}/ … | 94 " - au! FileType javascript syntax region foldBraces start=/{/ end=/}/ … |
96 let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") | 95 let b:match_skip = 'synIDattr(synID(line("."),col("."),1),"name") |