Following answer I got there to allow >> to indent, I edited my .vimrc
to this:
:set shiftwidth=2
:set autoindent
:set smartindent
But now when I copy/paste (via putty), it indents incrementally, by inserting unwanted "tabs".
I copy
#include <iostream>
int main() {
std::cout << " Hello Vi and Vim!";
return 0;
}
and when I paste in edit mode, it indent incrementally and it becomes:
#include <iostream>
int main() {
std::cout << " Hello Vi and Vim!";
return 0;
}
It won't happen if I remove my .vimrc
. Does it ring any bells?