vim extra space when copy
Turn off adding spaces to newline when copy to vim
:set paste
revert with:set nopaste
Turn off adding spaces to newline when copy to vim
:set paste
revert with:set nopaste
Find and replace all occurences of item foo for item bar in text:%s/foo/bar/g
or with escape character
this will replace /foo/bar with /foo/bar2:%s,foo/bar,foo/bar2,g
Remove first 2 characters, no matter what they are:%normal 2x
Remove first 2 characters, only if they are spaces:%s/^ /
Add 2 whitespaces at the beggining of selected lines'<,'>s!^! !