Skip to content

Commit

Permalink
tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ekmett committed Sep 13, 2012
1 parent 2ed78e5 commit d9a0b07
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
@@ -1 +1,3 @@
dist dist
tags
TAGS
31 changes: 31 additions & 0 deletions .vim.custom
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,31 @@
" 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

" enable syntax highlighting
syntax on

" search for the tags file anywhere between here and /
set tags=TAGS;/

" highlight tabs and trailing spaces
set listchars=tab:‗‗,trail:‗
set list

" f2 runs hasktags
map <F2> :exec ":!hasktags -x -c --ignore src"<CR><CR>

" strip trailing whitespace before saving
" au BufWritePre *.hs,*.markdown silent! cal StripTrailingWhitespace()

" rebuild hasktags after saving
au BufWritePost *.hs silent! :exec ":!hasktags -x -c --ignore src"

0 comments on commit d9a0b07

Please sign in to comment.