vim vehicle caving in also after establishing noai alternative

I am making use of vim 7.2 from putty terminal.
Also if I run set noai it appears vim still attempting to indent code. I am replicating my code from Notepad++ to vim. adhering to is from Notepad++

and also following what I entered vim:

I do not have any kind of tab in my documents.
As a workaround I am opening up old vi run set noai paste conserve and also open in vim once more. Any kind of pointer just how to remedy this actions?

0
2019-05-04 01:57:23
Source Share
Answers: 1

This has absolutely nothing to do with the noai alternative. What you are experiencing, is a little problem copy-pasting a load of message with existing indents to vim.

What I generally do (I have this 'trouble' a whole lot ), is bind F4 to invpaste and afterwards, prior to I paste things right into vim, struck that key. It makes the trouble vanish.

nnoremap <F4> :set invpaste paste?<CR>

Find out more concerning this making use of

:help paste 

inside vim

0
2019-05-07 23:51:07
Source

Related questions