From 9a33b8ff4430fce0424f7e00532630b954bf16de Mon Sep 17 00:00:00 2001 From: Scott Bronson Date: Mon, 16 Aug 2010 23:17:37 -0700 Subject: [PATCH] Make \p toggle paste mode --- doc/vimsy.txt | 1 - vimrc | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/vimsy.txt b/doc/vimsy.txt index 821b75a..f57af55 100644 --- a/doc/vimsy.txt +++ b/doc/vimsy.txt @@ -111,7 +111,6 @@ Ubuntu bug: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/534124 add a.vim. Add ack plugin or something to make searching easier. Not fond of ack but gotta do something! Add http://github.com/adamlogic/ack.vim/commit/850e83088e0a623390446ea88fc8740857777f25 ? -Figure out a keypress to toggle :set paste! on and off. I do it a lot. Like the organizaiton in http://github.com/Frangossauro/startervim/blob/master/vimrc Make ESC cancel bufexplorer and return to the previous file being edited, without affecting Control-6. This probably won't work in the terminal. Also Control-C like command-t does. diff --git a/vimrc b/vimrc index 0f7894d..f7f24f3 100644 --- a/vimrc +++ b/vimrc @@ -74,6 +74,9 @@ autocmd FileType ruby setlocal iskeyword+=!,? " redraws the screen and also turns off highlighting the current search nnoremap :nohl +" add a keybinding to toggle paste mode +nnoremap p :set paste!:set paste? + " make ' jump to saved line & column rather than just line. " http://items.sjbach.com/319/configuring-vim-right nnoremap ' `