File: .vim.custom

package info (click to toggle)
haskell-linear 1.23.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 364 kB
  • sloc: haskell: 5,235; makefile: 2
file content (21 lines) | stat: -rw-r--r-- 547 bytes parent folder | download | duplicates (5)
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"