1cd272c1a956

vim: use my fork of sparkup
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Thu, 02 Dec 2010 14:42:08 -0500
parents 10ee1199d4c1
children 5d88879cb502
branches/tags (none)
files .hgsub vim/.vimrc

Changes

--- a/.hgsub	Thu Dec 02 12:53:08 2010 -0500
+++ b/.hgsub	Thu Dec 02 14:42:08 2010 -0500
@@ -6,6 +6,6 @@
 vim/bundle/markdown = [git]git://github.com/tpope/vim-markdown.git
 vim/bundle/nerdcommenter = [git]git://github.com/scrooloose/nerdcommenter.git
 vim/bundle/nerdtree = [git]git://github.com/scrooloose/nerdtree.git
-vim/sadness/sparkup = [git]git://github.com/rstacruz/sparkup.git
+vim/sadness/sparkup = [git]git://github.com/sjl/sparkup.git
 vim/bundle/surround = [git]git://github.com/tpope/vim-surround.git
 vim/bundle/syntastic = [git]git://github.com/scrooloose/syntastic.git
--- a/vim/.vimrc	Thu Dec 02 12:53:08 2010 -0500
+++ b/vim/.vimrc	Thu Dec 02 14:42:08 2010 -0500
@@ -168,23 +168,9 @@
 au BufNewFile,BufRead test_*.py set shellpipe=2>&1\ >/dev/null\ \|\ tee
 au BufNewFile,BufRead test_*.py set errorformat=%f:%l:\ %m
 au BufNewFile,BufRead test_*.py nmap <Leader>N :make<cr>
-nmap <silent> <f3> :QFix<cr>
 nmap <leader>fn :cn<cr>
 nmap <leader>fp :cp<cr>
 
-command -bang -nargs=? QFix call QFixToggle(<bang>0)
-function! QFixToggle(forced)
-  if exists("g:qfix_win") && a:forced == 0
-    cclose
-    unlet g:qfix_win
-  else
-    copen 10
-    wincmd J
-    let g:qfix_win = bufnr("$")
-  endif
-endfunction
-
-
 " TODO: Put this in filetype-specific files
 au BufNewFile,BufRead *.less set foldmethod=marker
 au BufNewFile,BufRead *.less set foldmarker={,}
@@ -349,6 +335,22 @@
 let vimclojure#HighlightBuiltins=1
 let vimclojure#ParenRainbow=1
 
+" Syntastic
+let g:syntastic_enable_signs=1
+
+nmap <silent> <f3> :ErrorsToggle<cr>
+command! ErrorsToggle call ErrorsToggle()
+function! ErrorsToggle()
+  if exists("w:is_error_window")
+    unlet w:is_error_window
+    exec "q"
+  else
+    exec "Errors"
+    lopen
+    let w:is_error_window = 1
+  endif
+endfunction
+
 if has('gui_running')
     set guifont=Menlo:h12
     colorscheme molokai