Permalink
Browse files

tags

  • Loading branch information...
1 parent 2ed78e5 commit d9a0b07f41ec43ef58128a9cc2e0cc63239d611a @ekmett committed Sep 13, 2012
Showing with 33 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +31 −0 .vim.custom
View
@@ -1 +1,3 @@
dist
+tags
+TAGS
View
@@ -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.