diff options
Diffstat (limited to 'runtime/ftplugin/vhdl.vim')
-rw-r--r-- | runtime/ftplugin/vhdl.vim | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/runtime/ftplugin/vhdl.vim b/runtime/ftplugin/vhdl.vim index 08a2de33..0249b542 100644 --- a/runtime/ftplugin/vhdl.vim +++ b/runtime/ftplugin/vhdl.vim @@ -1,8 +1,8 @@ " VHDL filetype plugin " Language: VHDL -" Maintainer: R.Shankar <shankar.r?freescale.com> +" Maintainer: R.Shankar <shankar.pec?gmail.com> " Modified By: Gerald Lai <laigera+vim?gmail.com> -" Last Change: 2006 Feb 16 +" Last Change: 2011 Dec 11 " Only do this when not done yet for this buffer if exists("b:did_ftplugin") @@ -12,6 +12,9 @@ endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 +let s:cpo_save = &cpo +set cpo&vim + " Set 'formatoptions' to break comment lines but not other lines, " and insert the comment leader when hitting <CR> or using "o". "setlocal fo-=t fo+=croqlm1 @@ -22,8 +25,6 @@ let b:did_ftplugin = 1 " Format comments to be up to 78 characters long "setlocal tw=75 -set cpo-=C - " Win32 can filter files in the browse dialog "if has("gui_win32") && !exists("b:browsefilter") " let b:browsefilter = "Verilog Source Files (*.v)\t*.v\n" . @@ -82,3 +83,6 @@ vnoremap <buffer><silent>[[ :<C-u>cal <SID>CountWrapper('[[')<CR> vnoremap <buffer><silent>]] :<C-u>cal <SID>CountWrapper(']]')<CR> vnoremap <buffer><silent>[] :<C-u>cal <SID>CountWrapper('[]')<CR> vnoremap <buffer><silent>][ :<C-u>cal <SID>CountWrapper('][')<CR> + +let &cpo = s:cpo_save +unlet s:cpo_save |