Send a link

vim

This is my current .vimrc
set nocompatible
syntax enable
set backspace=eol,start,indent
set pastetoggle=<F8>
map <F11> :let &background = ( &background == "light"? "dark" : "light" )<CR>
set tabstop=4       " numbers of spaces of tab character
set shiftwidth=4    " numbers of spaces to (auto)indent
set cindent         " cindent
set smartindent     " smart indent
set autoindent      " always set autoindenting on
set showmatch
set mouse=a

Basically I like mouse support for navigating/editing faster, and the auto indent works fine - unless you have to paste something!

So now F8 works as a paste toggle. When you are in INSERT mode, just hit F8 before you paste, and you will paste directly from clipboard with indent temporarily disabled.

Your welcome ;)