# HG changeset patch # User Steve Losh # Date 1313762078 14400 # Node ID e50c19784e1e3890b5108ae963493996d10353b7 # Parent 9cb9df3cc3f10449c19cd766604f92c4f97c880b Paste changes. diff -r 9cb9df3cc3f1 -r e50c19784e1e vim/.vimrc --- a/vim/.vimrc Thu Aug 18 12:34:49 2011 -0400 +++ b/vim/.vimrc Fri Aug 19 09:54:38 2011 -0400 @@ -140,7 +140,6 @@ runtime macros/matchit.vim map % -nnoremap Y y$ nnoremap D d$ " Make horizontal scrolling less horrible. @@ -276,9 +275,9 @@ " Use a swank command that works, and doesn't require new app windows. au FileType clojure let g:slimv_swank_cmd='!dtach -n /tmp/dvtm-swank.sock -r winch lein swank' -au BufNewFile,BufRead Slimv.REPL.clj setlocal winfixwidth +au BufWinEnter Slimv.REPL.clj setlocal winfixwidth au BufNewFile,BufRead Slimv.REPL.clj setlocal nowrap -au BufNewFile,BufRead Slimv.REPL.clj normal! zR +au BufWinEnter Slimv.REPL.clj normal! zR " }}} " Confluence {{{ @@ -518,6 +517,18 @@ nnoremap 1 :set cmdheight=1 nnoremap 2 :set cmdheight=2 +" Paste intelligently by default, use option+p to paste raw. +function! YRRunAfterMaps() + nnoremap Y :YRYankCount 'y$' + nnoremap p :YRPaste 'p'v`]=`] + nnoremap P :YRPaste 'P'v`]=`] + nnoremap π :YRPaste 'p' + nnoremap ∏ :YRPaste 'P' +endfunction + +" Replaste +nnoremap "_ddPV`]= + " Marks and Quotes noremap ' ` noremap æ ' @@ -552,9 +563,6 @@ " Toggle paste set pastetoggle= -" Replaste -nnoremap "_ddPV`] - " Split/Join " ---------- "