Mark Knecht <markknecht <at> gmail.com> writes:

> What is the solution to begin able to paste code I find on the web
> into a file in vim and being able to keep the indentation from
> changing?


Well, if you want to keep it simple, here is what I do:
edit /etc/vim/vimrc

"set ai                  " Always set auto-indenting on
set noai                " No auto indenting (James added this



now pasting into with vi does not indent deeper with each line.

hth,
James





Reply via email to