summaryrefslogtreecommitdiffstats
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/ftdetect/c.vim1
-rw-r--r--vim/ftplugin/cpp.vim1
-rw-r--r--vim/ftplugin/perl.vim14
-rw-r--r--vim/ftplugin/sh.vim1
-rw-r--r--vim/ftplugin/tex.vim2
-rw-r--r--vim/syntax/perl.vim1
6 files changed, 20 insertions, 0 deletions
diff --git a/vim/ftdetect/c.vim b/vim/ftdetect/c.vim
new file mode 100644
index 0000000..8dac68b
--- /dev/null
+++ b/vim/ftdetect/c.vim
@@ -0,0 +1 @@
+let c_syntax_for_h = 1
diff --git a/vim/ftplugin/cpp.vim b/vim/ftplugin/cpp.vim
new file mode 100644
index 0000000..073956b
--- /dev/null
+++ b/vim/ftplugin/cpp.vim
@@ -0,0 +1 @@
+let b:load_doxygen_syntax = 1
diff --git a/vim/ftplugin/perl.vim b/vim/ftplugin/perl.vim
index 085e940..156ccff 100644
--- a/vim/ftplugin/perl.vim
+++ b/vim/ftplugin/perl.vim
@@ -10,3 +10,17 @@ function! s:perldoc(word)
endfunction
nnoremap <buffer> <silent>K :call Help(0, [':'], '<SID>perldoc')<CR>
vnoremap <buffer> <silent>K :call Help(1, [':'], '<SID>perldoc')<CR>
+
+function! s:set_excludes()
+ if filereadable("dist.ini")
+ for line in readfile("dist.ini", '', 10)
+ let name = matchstr(line, '\s*name\s*=\s*\zs.*')
+ if name != ""
+ exe 'set wildignore+=' . name . '-*/*'
+ break
+ endif
+ endfor
+ endif
+endfunction
+autocmd BufReadPost * call <SID>set_excludes()
+call <SID>set_excludes()
diff --git a/vim/ftplugin/sh.vim b/vim/ftplugin/sh.vim
new file mode 100644
index 0000000..fd3281e
--- /dev/null
+++ b/vim/ftplugin/sh.vim
@@ -0,0 +1 @@
+let b:is_bash = 1
diff --git a/vim/ftplugin/tex.vim b/vim/ftplugin/tex.vim
index 37fe35d..a283f01 100644
--- a/vim/ftplugin/tex.vim
+++ b/vim/ftplugin/tex.vim
@@ -1,3 +1,5 @@
+let b:tex_flavor="latex"
+
" :make converts to pdf
setlocal makeprg=(cd\ /tmp\ &&\ pdflatex\ --halt-on-error\ %:p)
diff --git a/vim/syntax/perl.vim b/vim/syntax/perl.vim
new file mode 100644
index 0000000..c70fa27
--- /dev/null
+++ b/vim/syntax/perl.vim
@@ -0,0 +1 @@
+let perl_sub_signatures = 1