diff options
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/falcon.vim | 6 | ||||
-rw-r--r-- | runtime/ftplugin/kwt.vim | 10 | ||||
-rw-r--r-- | runtime/ftplugin/vim.vim | 6 |
3 files changed, 19 insertions, 3 deletions
diff --git a/runtime/ftplugin/falcon.vim b/runtime/ftplugin/falcon.vim index 776db8013..2e1e7fafb 100644 --- a/runtime/ftplugin/falcon.vim +++ b/runtime/ftplugin/falcon.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Falcon " Author: Steven Oliver <oliver.steven@gmail.com> -" Copyright: Copyright (c) 2009, 2010, 2011 Steven Oliver +" Copyright: Copyright (c) 2009, 2010, 2011, 2012 Steven Oliver " License: You may redistribute this under the same terms as Vim itself " -------------------------------------------------------------------------- " GetLatestVimScripts: 2762 1 :AutoInstall: falcon.vim @@ -40,6 +40,10 @@ if has("gui_win32") && !exists("b:browsefilter") \ "All Files (*.*)\t*.*\n" endif +let b:undo_ftplugin = "setlocal tabstop< shiftwidth< expandtab< fileencoding<" + \ . " suffixesadd< comments<" + \ . "| unlet! b:browsefiler" + let &cpo = s:cpo_save unlet s:cpo_save diff --git a/runtime/ftplugin/kwt.vim b/runtime/ftplugin/kwt.vim index 6d4b8fdbf..05b40d4e2 100644 --- a/runtime/ftplugin/kwt.vim +++ b/runtime/ftplugin/kwt.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: Kimwitu++ " Maintainer: Michael Piefel <entwurf@piefel.de> -" Last Change: 10 December 2011 +" Last Change: 10 March 2012 " Behaves almost like C++ runtime! ftplugin/cpp.vim ftplugin/cpp_*.vim ftplugin/cpp/*.vim @@ -20,5 +20,13 @@ endif " Set the errorformat for the Kimwitu++ compiler set efm+=kc%.%#:\ error\ at\ %f:%l:\ %m +if exists("b:undo_ftplugin") + let b:undo_ftplugin = b:undo_ftplugin . " | setlocal efm<" + \ . "| unlet! b:browsefiler" +else + let b:undo_ftplugin = "setlocal efm<" + \ . "| unlet! b:browsefiler" +endif + let &cpo = s:cpo_save unlet s:cpo_save diff --git a/runtime/ftplugin/vim.vim b/runtime/ftplugin/vim.vim index de8a04798..5feb15271 100644 --- a/runtime/ftplugin/vim.vim +++ b/runtime/ftplugin/vim.vim @@ -1,7 +1,7 @@ " Vim filetype plugin " Language: Vim " Maintainer: Bram Moolenaar <Bram@vim.org> -" Last Change: 2009 Jan 22 +" Last Change: 2012 Mar 21 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -21,6 +21,10 @@ let b:undo_ftplugin = "setl fo< isk< com< tw< commentstring<" " and insert the comment leader when hitting <CR> or using "o". setlocal fo-=t fo+=croql +" To make syntax highlighting of 'vimVar's work correctly we need the colon to +" be part of keywords. This needs to be done prior to the 'isk+=#' below. +setlocal isk+=: + " To allow tag lookup via CTRL-] for autoload functions, '#' must be a " keyword character. E.g., for netrw#Nread(). setlocal isk+=# |