diff options
-rw-r--r-- | vim/config/paste.vim | 6 | ||||
-rw-r--r-- | vim/vimrc | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/vim/config/paste.vim b/vim/config/paste.vim new file mode 100644 index 00000000..fa26d6f4 --- /dev/null +++ b/vim/config/paste.vim @@ -0,0 +1,6 @@ +" 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 +set pastetoggle=<F10> @@ -81,13 +81,6 @@ set nrformats-=octal " more than scratch space anyway set shellslash -" 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 -set pastetoggle=<F10> - " If the Vim buffer for a file doesn't have any changes and Vim detects the " file has been altered, quietly update it set autoread |