• Member for 5 years, 11 months
  • Last seen more than a week ago
  • Berne, Switzerland
What is the purpose of `s`?
Accepted answer
10 votes

I don't think there's a more specific use mode than to delete the character under the cursor and enter insert mode. By using a number modifier you can delete several characters before entering insert ...

View answer
Indenting when using ()
2 votes

Before I was using set cindent in my .vimrc. If I understand correctly, this turns on cindent for all filetypes. If I do not specify, it will only be turned on for cpp files, which is what I want. ...

View answer