Reputation: 3509
I have copied a Ruby example into Vim, but it turns out that this messed up the indentation. I tried to make Vim apply the Ruby specific indentation. To do that I uncommented the following lines in the global vimrc file:
if has ("autocmd")
filetype plugin indent on
endif
And pressed gg=G
in Vim. Now it changes some of the indentation, but it still has some errors:
Upvotes: 6
Views: 746
Reputation: 11228
Before paste from outer source, use this command
:set paste
then enter to insert mode and paste.
Upvotes: 1