Permalink
Browse files

Vim copy/paste

  • Loading branch information...
1 parent 2107635 commit a7e1804a2b302c94fdea2bef588bba8a9c45a137 @samuelcotterall committed Apr 19, 2012
Showing with 7 additions and 2 deletions.
  1. +0 −1 vim/bundle/supertab
  2. +7 −1 vimrc
Submodule supertab deleted from 830277
View
8 vimrc
@@ -42,11 +42,17 @@ set expandtab
set autoindent
set smartindent
+" Yank text to the OS X clipboard
+noremap <leader>y "*y
+noremap <leader>yy "*Y
+"
+" Preserve indentation while pasting text from the OS X clipboard
+noremap <leader>p :set paste<CR>:put *<CR>:set nopaste<CR>
+
" Keymappings
let mapleader = ","
map <leader>n :NERDTreeToggle<cr>
-
" http://stevelosh.com/blog/2010/09/coming-home-to-vim/
nnoremap / /\v
vnoremap / /\v

0 comments on commit a7e1804

Please sign in to comment.