git.iko.soy/haskell-generate
on master help sign in
haskell-generate/.vim.custom
31 lines 767 B history raw
1" Add the following to your .vimrc to automatically load this on startup
3" if filereadable(".vim.custom")
4" so .vim.custom
5" endif
7function StripTrailingWhitespace()
8 let myline=line(".")
9 let mycolumn = col(".")
10 silent %s/ *$//
11 call cursor(myline, mycolumn)
12endfunction
14" enable syntax highlighting
15syntax on
17" search for the tags file anywhere between here and /
18set tags=TAGS;/
20" highlight tabs and trailing spaces
21set listchars=tab:‗‗,trail:‗
22set list
24" f2 runs hasktags
25map <F2> :exec ":!hasktags -x -c --ignore src"<CR><CR>
27" strip trailing whitespace before saving
28" au BufWritePre *.hs,*.markdown silent! cal StripTrailingWhitespace()
30" rebuild hasktags after saving
31au BufWritePost *.hs silent! :exec ":!hasktags -x -c --ignore src"