Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (17 sloc) 0.547 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
" 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"
Something went wrong with that request. Please try again.