Artificial intelligent assistant

vim auto indenting even after setting noai option I am using vim 7.2 from putty terminal. Even if I run `set noai` it seems vim still trying to indent code. I am copying my code from Notepad++ to vim. following is from Notepad++ !alt text and following what I got in vim: !alt text I don't have any tab in my file. As a workaround I am opening old vi run `set noai` paste save and open in vim again. Any suggestion how to correct this behavior ?

This has nothing to do with the noai option. What you are experiencing, is a little trouble copy-pasting a load of text _with existing indents_ to vim.

What I usually do (I have this 'problem' a lot), is bind F4 to invpaste and then, before I paste stuff into vim, hit that key. It makes the problem go away.


nnoremap :set invpaste paste?


Read more about this using


:help paste


inside vim

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 3f277ca1a77b1c4876d1108810ca69df