diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-05-03 20:58:32 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-05-03 20:59:26 +0200 |
commit | c535cc7dde493f405d81cfb9d331405d9b0f097a (patch) | |
tree | c558105020c96cc9bca44e173c83a6ffc4b17f29 /runtime/ftplugin | |
parent | 3c45e3b42a6c8c48d4f2bc7d51ccfa0f6781d849 (diff) | |
download | rneovim-c535cc7dde493f405d81cfb9d331405d9b0f097a.tar.gz rneovim-c535cc7dde493f405d81cfb9d331405d9b0f097a.tar.bz2 rneovim-c535cc7dde493f405d81cfb9d331405d9b0f097a.zip |
vim-patch:d7464be
Updated runtime files.
https://github.com/vim/vim/commit/d7464be9747fcaa8e6210e1f00a3882932df76e2
Applied cleanly except for runtime/docs/todo.txt and runtime/docs/tags.
Diffstat (limited to 'runtime/ftplugin')
-rw-r--r-- | runtime/ftplugin/hog.vim | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/runtime/ftplugin/hog.vim b/runtime/ftplugin/hog.vim new file mode 100644 index 0000000000..4ee0a9f934 --- /dev/null +++ b/runtime/ftplugin/hog.vim @@ -0,0 +1,39 @@ +" Vim filetype plugin +" Language: hog (snort.conf) +" Maintainer: . Victor Roemer, <vroemer@badsec.org>. +" Last Change: Mar 1, 2013 + +if exists("b:did_ftplugin") + finish +endif +let b:did_ftplugin = 1 + +let s:undo_ftplugin = "setl fo< com< cms< def< inc<" + +let s:cpo_save = &cpo +set cpo&vim + +setlocal formatoptions=croq +setlocal comments=:# +setlocal commentstring=\c#\ %s +setlocal define=\c^\s\{-}var +setlocal include=\c^\s\{-}include + +" Move around configurations +let s:hog_keyword_match = '\c^\s*\<\(preprocessor\\|config\\|output\\|include\\|ipvar\\|portvar\\|var\\|dynamicpreprocessor\\|' . + \ 'dynamicengine\\|dynamicdetection\\|activate\\|alert\\|drop\\|block\\|dynamic\\|log\\|pass\\|reject\\|sdrop\\|sblock\)\>' + +exec "nnoremap <buffer><silent> ]] :call search('" . s:hog_keyword_match . "', 'W' )<CR>" +exec "nnoremap <buffer><silent> [[ :call search('" . s:hog_keyword_match . "', 'bW' )<CR>" + +if exists("loaded_matchit") + let b:match_words = + \ '^\s*\<\%(preprocessor\|config\|output\|include\|ipvar\|portvar' . + \ '\|var\|dynamicpreprocessor\|dynamicengine\|dynamicdetection' . + \ '\|activate\|alert\|drop\|block\|dynamic\|log\|pass\|reject' . + \ '\|sdrop\|sblock\>\):$,\::\,:;' + let b:match_skip = 'r:\\.\{-}$\|^\s*#.\{-}$\|^\s*$' +endif + +let &cpo = s:cpo_save +unlet s:cpo_save |