summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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
-rw-r--r--vimrc54
7 files changed, 20 insertions, 54 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
diff --git a/vimrc b/vimrc
index f36e529..53afb15 100644
--- a/vimrc
+++ b/vimrc
@@ -97,42 +97,6 @@ set showbreak=>
if has('conceal')
set conceallevel=2 concealcursor=i
endif
-
-" Language specific features {{{
-" Bash {{{
-" I use bash
-let g:is_bash=1
-" }}}
-" C/C++ {{{
-" use c syntax for header files, rather than c++
-let c_syntax_for_h=1
-
-" highlight doxygen
-let g:load_doxygen_syntax=1
-" }}}
-" LaTeX {{{
-" I only use LaTeX
-let g:tex_flavor="latex"
-" }}}
-" Perl {{{
-" POD!
-let perl_include_pod=1
-
-" color quote marks differently from the actual string
-let perl_string_as_statement=1
-
-" perl needs lots of syncing...
-let perl_sync_dist=1000
-
-" highlight sub signatures, not just prototypes
-let perl_sub_signatures=1
-" }}}
-" PostScript {{{
-" highlight more things in postscripts files
-let postscr_fonts=1
-let postscr_encodings=1
-" }}}
-" }}}
" }}}
" Improve power of commands {{{
" backspace over autoindent, end of line (to join lines), and preexisting test
@@ -143,21 +107,6 @@ set wildmenu
" when doing tab completion, ignore files that match any of these
set wildignore+=*.o,.git/*,.svn/*,blib/*
-" exclusions {{{
-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()
-" }}}
" tab completions should ignore case
if exists("+wildignorecase")
@@ -382,9 +331,6 @@ autocmd BufEnter * if line('$') > 20000 | syntax off | endif
" regularly check for autoread {{{
autocmd BufEnter,CursorHold,CursorHoldI * silent! checktime
" }}}
-" Misc {{{
-autocmd BufWritePost *conkyrc silent exe "!killall -HUP conky"
-" }}}
" }}}
" Remappings {{{
" Keep the current selection when indenting (thanks cbus) {{{