# HG changeset patch # User Steve Losh # Date 1299603818 18000 # Node ID 02b5ea28b2b0a1ced2ba2c3abbfaf511d6a14452 # Parent 78ece662f498847fd3982dee385cce91e937cf33 vim: sparkup tweaks and docs diff -r 78ece662f498 -r 02b5ea28b2b0 vim/.vimrc --- a/vim/.vimrc Tue Mar 08 12:03:21 2011 -0500 +++ b/vim/.vimrc Tue Mar 08 12:03:38 2011 -0500 @@ -40,7 +40,7 @@ set listchars=tab:▸\ ,eol:¬ set shell=/bin/bash set lazyredraw -set wildignore+=*.pyc,.hg +set wildignore+=*.pyc,.hg,.git set matchtime=3 set showbreak=↪ @@ -218,11 +218,31 @@ au BufNewFile,BufRead *.html setlocal filetype=htmldjango au BufNewFile,BufRead *.html setlocal foldmethod=manual + +" Use f to fold the current tag. au BufNewFile,BufRead *.html nnoremap f Vatzf + +" Use Shift-Return to turn this: +" | +" +" into this: +" +" | +" au BufNewFile,BufRead *.html inoremap kA -au BufNewFile,BufRead *.html imap -au BufNewFile,BufRead *.html imap . -au BufNewFile,BufRead *.html nnoremap vitavitoi +au BufNewFile,BufRead *.html nnoremap vitavitoi + +" Sparkup mappings: +" +" to expand sparkup normally: +"

|

+" +" to force an expanded sparkup. +"

+" | +"

+au BufNewFile,BufRead *.html imap +au BufNewFile,BufRead *.html imap . " }}} " CSS {{{ @@ -369,11 +389,6 @@ " }}} " Plugin Settings ------------------------------------------------------------- {{{ -" Python Formatting {{{ - -let python_highlight_string_formatting = 1 - -" }}} " NERD Tree {{{ map :NERDTreeToggle @@ -577,11 +592,11 @@ if has("gui_macvim") macmenu &File.New\ Tab key= map PeepOpen - map t ,wPeepOpen end " Only map Sparkup to ⌘+e when running in MacVim. - let g:sparkupExecuteMapping = '' + let g:sparkupExecuteMapping = '' + let g:sparkupNextMapping = '' highlight SpellBad term=underline gui=undercurl guisp=Orange