comparison runtime/ftplugin/vim.vim @ 24:8ff7fd162d3c v7.0016

updated for version 7.0016
author vimboss
date Mon, 13 Sep 2004 20:26:32 +0000
parents 3fc0f57ecb91
children 4d9eabb1396e
comparison
equal deleted inserted replaced
23:3f44e9abe4ec 24:8ff7fd162d3c
1 " Vim filetype plugin 1 " Vim filetype plugin
2 " Language: Vim 2 " Language: Vim
3 " Maintainer: Bram Moolenaar <Bram@vim.org> 3 " Maintainer: Bram Moolenaar <Bram@vim.org>
4 " Last Change: 2004 Feb 20 4 " Last Change: 2004 Sep 13
5 5
6 " Only do this when not done yet for this buffer 6 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin") 7 if exists("b:did_ftplugin")
8 finish 8 finish
9 endif 9 endif
31 31
32 " Comments start with a double quote 32 " Comments start with a double quote
33 setlocal commentstring=\"%s 33 setlocal commentstring=\"%s
34 34
35 " Move around functions. 35 " Move around functions.
36 noremap <silent><buffer> [[ :call search('^\s*fu\%[nction]\>', "bW")<CR> 36 noremap <silent><buffer> [[ m':call search('^\s*fu\%[nction]\>', "bW")<CR>
37 noremap <silent><buffer> ]] :call search('^\s*fu\%[nction]\>', "W")<CR> 37 noremap <silent><buffer> ]] m':call search('^\s*fu\%[nction]\>', "W")<CR>
38 noremap <silent><buffer> [] :call search('^\s*endf*\%[unction]\>', "bW")<CR> 38 noremap <silent><buffer> [] m':call search('^\s*endf*\%[unction]\>', "bW")<CR>
39 noremap <silent><buffer> ][ :call search('^\s*endf*\%[unction]\>', "W")<CR> 39 noremap <silent><buffer> ][ m':call search('^\s*endf*\%[unction]\>', "W")<CR>
40 40
41 " Move around comments 41 " Move around comments
42 noremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR> 42 noremap <silent><buffer> ]" :call search('^\(\s*".*\n\)\@<!\(\s*"\)', "W")<CR>
43 noremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR> 43 noremap <silent><buffer> [" :call search('\%(^\s*".*\n\)\%(^\s*"\)\@!', "bW")<CR>
44 44