From 7fc904b610d5739dd7b72fb2f6b0e4b330c97179 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 13 Apr 2006 20:37:35 +0000 Subject: updated for version 7.0d03 --- runtime/indent/vhdl.vim | 96 ++++++++++++++++++++++++------------------------- 1 file changed, 48 insertions(+), 48 deletions(-) (limited to 'runtime/indent') diff --git a/runtime/indent/vhdl.vim b/runtime/indent/vhdl.vim index 82f0f834b0..8176673a81 100644 --- a/runtime/indent/vhdl.vim +++ b/runtime/indent/vhdl.vim @@ -1,8 +1,8 @@ " VHDL indent ('93 syntax) " Language: VHDL " Maintainer: Gerald Lai -" Version: 1.34 -" Last Change: 2006 Feb 11 +" Version: 1.36 +" Last Change: 2006 Apr 12 " URL: http://www.vim.org/scripts/script.php?script_id=1450 " only load this indent file when no other was loaded @@ -15,37 +15,37 @@ let b:did_indent = 1 setlocal indentexpr=GetVHDLindent() setlocal indentkeys=!^F,o,O,e,0(,0) setlocal indentkeys+==~if,=~then,=~elsif,=~else -setlocal indentkeys+==~begin,=~is,=~select,=~-- +setlocal indentkeys+==~begin,=~is,=~select " count repeat -function! CountWrapper(cmd) - let i = v:count1 - if a:cmd[0] == ":" - while i > 0 - execute a:cmd - let i = i - 1 - endwhile - else - execute "normal! gv\" - execute "normal ".i.a:cmd - let curcol = col(".") - let curline = line(".") - normal! gv - call cursor(curline, curcol) - endif -endfunction +"function! CountWrapper(cmd) +" let i = v:count1 +" if a:cmd[0] == ":" +" while i > 0 +" execute a:cmd +" let i = i - 1 +" endwhile +" else +" execute "normal! gv\" +" execute "normal ".i.a:cmd +" let curcol = col(".") +" let curline = line(".") +" normal! gv +" call cursor(curline, curcol) +" endif +"endfunction " explore motion " keywords: "architecture", "block", "configuration", "component", "entity", "function", "package", "procedure", "process", "record", "units" -let b:vhdl_explore = '\%(architecture\|block\|configuration\|component\|entity\|function\|package\|procedure\|process\|record\|units\)' -noremap [[ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') -noremap ]] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') -noremap [] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') -noremap ][ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') -vnoremap [[ :cal CountWrapper('[[') -vnoremap ]] :cal CountWrapper(']]') -vnoremap [] :cal CountWrapper('[]') -vnoremap ][ :cal CountWrapper('][') +"let b:vhdl_explore = '\%(architecture\|block\|configuration\|component\|entity\|function\|package\|procedure\|process\|record\|units\)' +"noremap [[ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') +"noremap ]] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') +"noremap [] :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%^","bW")') +"noremap ][ :cal CountWrapper(':cal search("\\%(--.*\\)\\@\\c\\\\%$","W")') +"vnoremap [[ :cal CountWrapper('[[') +"vnoremap ]] :cal CountWrapper(']]') +"vnoremap [] :cal CountWrapper('[]') +"vnoremap ][ :cal CountWrapper('][') " constants " not a comment @@ -56,26 +56,26 @@ let s:ES = '\s*\%(--.*\)\=$' let s:NE = '\%(\:\:\:\,'. - \ s:NE.'\:\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\,'. - \ s:NE.'\:\' -endif +"if exists("loaded_matchit") +" let b:match_ignorecase = 1 +" let b:match_words = +" \ s:NE.'\:\:\:\,'. +" \ s:NE.'\:\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\,'. +" \ s:NE.'\:\' +"endif " only define indent function once if exists("*GetVHDLindent") -- cgit v1.2.3