aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-20 22:45:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-20 22:45:09 +1200
commit323f11bcfb8814cce300777750db335be342723f (patch)
tree4ddbe5d4e5e7393b0601af64c0e09450d3d34708
parent753f0533711ca148992b5cc9e843510614822058 (diff)
downloaddotfiles-323f11bcfb8814cce300777750db335be342723f.tar.gz
Simplify .vim 'paste' and 'pastetoggle' settings
'paste' is off by default, obviously, and a terser comment can describe 'pastetoggle'.
-rw-r--r--vim/vimrc6
1 files changed, 1 insertions, 5 deletions
diff --git a/vim/vimrc b/vim/vimrc
index aab44c87..2ac81c8c 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -211,11 +211,7 @@ vnoremap <silent> & :<C-U>&&<CR>
" this with a 'directory' setting
set noswapfile
-" Start paste mode with F10 to prevent console Vim from confusing a swathe of
-" pre-formatted pasted text with actual keyboard input, and thereby attempting
-" to indent it inappropriately. If unimpaired.vim is available, it's generally
-" nicer to use yo or yO.
-set nopaste
+" Press F10 to stop console Vim from formatting pasted text
set pastetoggle=<F10>
" Don't bother about checking whether Escape is being used as a means to enter