From 774e48054149fe1f9512104a2f821e0055168d8a Mon Sep 17 00:00:00 2001 From: Gregor Uhlenheuer Date: Sun, 4 Apr 2010 22:13:18 +0800 Subject: vim ftplugin for uzbl, config section folding & improved vim syntax file --- extras/vim/ftplugin/uzbl.vim | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 extras/vim/ftplugin/uzbl.vim (limited to 'extras/vim/ftplugin') diff --git a/extras/vim/ftplugin/uzbl.vim b/extras/vim/ftplugin/uzbl.vim new file mode 100644 index 0000000..513eaa4 --- /dev/null +++ b/extras/vim/ftplugin/uzbl.vim @@ -0,0 +1,29 @@ +" Vim filetype file +" Filename: uzbl.vim +" Maintainer: Gregor Uhlenheuer +" Last Change: Sun 04 Apr 2010 01:37:49 PM CEST + +if exists('b:did_ftplugin') + finish +endif + +let b:did_ftplugin = 1 + +" enable syntax based folding +setlocal foldmethod=syntax + +" correctly format comments +setlocal formatoptions=croql +setlocal comments=:# +setlocal commentstring=#%s + +" define config testing commands and mappings +if executable('uzbl-core') + com! -buffer UzblCoreTest !uzbl-core -c % + nmap uc :UzblCoreTest +endif + +if executable('uzbl-browser') + com! -buffer UzblBrowserTest !uzbl-browser -c % + nmap ub :UzblBrowserTest +endif -- cgit v1.2.3