Re: Paste without smartindent
- Another alternative maybe is to use the pastetoggle command -
I have the following in my .vimrc which in my case allows F11 to toggle
'paste mode' on and off:
Marvin Humphrey wrote:
> I'm replying to my own mail because I received a private reply which
> led me to the solution.
> On Dec 28, 2006, at 9:50 AM, Marvin Humphrey wrote:
>> Or maybe there's another way to achieve the same ends?
> Looks like this is the magic incantation:
> noremap <D-v> <esc>:set paste<CR>"+gP:set nopaste<CR>
> inoremap <D-v> <esc>:set paste<CR>"+gP:set nopaste<CR>i
> Doesn't work in Terminal, but works in gvim.
> Marvin Humphrey
> Rectangular Research
View this message in context: http://www.nabble.com/Paste-without-smartindent-tf2891398.html#a8122506
Sent from the Vim - Mac mailing list archive at Nabble.com.