Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (17 sloc) 0.547 kb
" Add the following to your .vimrc to automatically load this on startup
" if filereadable(".vim.custom")
" so .vim.custom
" endif
function StripTrailingWhitespace()
let myline=line(".")
let mycolumn = col(".")
silent %s/ *$//
call cursor(myline, mycolumn)
endfunction
syntax on
set tags=TAGS;/
set listchars=tab:‗‗,trail:‗
set list
map <F2> :exec ":!hasktags -x -c --ignore src"<CR><CR>
au BufWritePre *.hs,*.markdown silent! cal StripTrailingWhitespace()
au BufWritePost *.hs silent! :exec ":!hasktags -x -c --ignore src"
Jump to Line
Something went wrong with that request. Please try again.