Skip to content

Commit

Permalink
Make \p toggle paste mode
Browse files Browse the repository at this point in the history
  • Loading branch information
bronson committed Aug 17, 2010
1 parent 07a1cd0 commit 9a33b8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion doc/vimsy.txt
Expand Up @@ -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.
Expand Down
3 changes: 3 additions & 0 deletions vimrc
Expand Up @@ -74,6 +74,9 @@ autocmd FileType ruby setlocal iskeyword+=!,?
" <C-L> redraws the screen and also turns off highlighting the current search
nnoremap <C-L> :nohl<CR><C-L>
" add a keybinding to toggle paste mode
nnoremap <leader>p :set paste!<CR>:set paste?<CR>
" make ' jump to saved line & column rather than just line.
" http://items.sjbach.com/319/configuring-vim-right
nnoremap ' `
Expand Down

0 comments on commit 9a33b8f

Please sign in to comment.