Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 22 lines (17 sloc) 0.547 kb
d0f6142 @ekmett adding hasktags for easier development
authored
1 " Add the following to your .vimrc to automatically load this on startup
2 " if filereadable(".vim.custom")
3 " so .vim.custom
4 " endif
5
dc90d62 @ekmett moved monoidal operations to Data.Monoid.Lens
authored
6 function StripTrailingWhitespace()
7 let myline=line(".")
8 let mycolumn = col(".")
9 silent %s/ *$//
10 call cursor(myline, mycolumn)
11 endfunction
12
d0f6142 @ekmett adding hasktags for easier development
authored
13 syntax on
14 set tags=TAGS;/
15 set listchars=tab:‗‗,trail:‗
16 set list
17
18 map <F2> :exec ":!hasktags -x -c --ignore src"<CR><CR>
dc90d62 @ekmett moved monoidal operations to Data.Monoid.Lens
authored
19
20 au BufWritePre *.hs,*.markdown silent! cal StripTrailingWhitespace()
21 au BufWritePost *.hs silent! :exec ":!hasktags -x -c --ignore src"
Something went wrong with that request. Please try again.