comparison runtime/ftplugin/vim.vim @ 14298:4a588e3afd4a

Update runtime files, add Danish translations. commit https://github.com/vim/vim/commit/fd35811ca528de7612f9571bce20ef4c392fe5f7 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jul 7 23:21:31 2018 +0200 Update runtime files, add Danish translations.
author Christian Brabandt <cb@256bit.org>
date Sat, 07 Jul 2018 23:30:07 +0200
parents a6d3e2081544
children 5c5908e81e93
comparison
equal deleted inserted replaced
14297:42011b52bd3c 14298:4a588e3afd4a
12 let b:did_ftplugin = 1 12 let b:did_ftplugin = 1
13 13
14 let s:cpo_save = &cpo 14 let s:cpo_save = &cpo
15 set cpo-=C 15 set cpo-=C
16 16
17 let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<" 17 if !exists('*VimFtpluginUndo')
18 \ . "| unlet! b:match_ignorecase b:match_words b:match_skip" 18 func VimFtpluginUndo()
19 setl fo< isk< com< tw< commentstring<
20 if exists(b:did_add_maps)
21 silent! nunmap <buffer> [['
22 silent! vunmap <buffer> [['
23 silent! nunmap <buffer> ]]'
24 silent! vunmap <buffer> ]]'
25 silent! nunmap <buffer> []'
26 silent! vunmap <buffer> []'
27 silent! nunmap <buffer> ]['
28 silent! vunmap <buffer> ]['
29 silent! nunmap <buffer> ]"'
30 silent! vunmap <buffer> ]"'
31 silent! nunmap <buffer> ["'
32 silent! vunmap <buffer> ["'
33 endif
34 unlet! b:match_ignorecase b:match_words b:match_skip b:did_add_maps
35 endfunc
36 endif
37
38 let b:undo_ftplugin = "call VimFtpluginUndo()"
19 39
20 " Set 'formatoptions' to break comment lines but not other lines, 40 " Set 'formatoptions' to break comment lines but not other lines,
21 " and insert the comment leader when hitting <CR> or using "o". 41 " and insert the comment leader when hitting <CR> or using "o".
22 setlocal fo-=t fo+=croql 42 setlocal fo-=t fo+=croql
23 43
38 58
39 " Comments start with a double quote 59 " Comments start with a double quote
40 setlocal commentstring=\"%s 60 setlocal commentstring=\"%s
41 61
42 if !exists("no_plugin_maps") && !exists("no_vim_maps") 62 if !exists("no_plugin_maps") && !exists("no_vim_maps")
63 let b:did_add_maps = 1
64
43 " Move around functions. 65 " Move around functions.
44 nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR> 66 nnoremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
45 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>
46 nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR> 68 nnoremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR>
47 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>