# HG changeset patch # User Steve Losh # Date 1291318928 18000 # Node ID 1cd272c1a9560fd4a83d9e81ad035b2e9b28ada3 # Parent 10ee1199d4c1ee21078d4ee732344613e5fbdfec vim: use my fork of sparkup diff -r 10ee1199d4c1 -r 1cd272c1a956 .hgsub --- 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 diff -r 10ee1199d4c1 -r 1cd272c1a956 vim/.vimrc --- 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 N :make -nmap :QFix nmap fn :cn nmap fp :cp -command -bang -nargs=? QFix call QFixToggle(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 :ErrorsToggle +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