vim line numbers – how to have them on by default?
I can :set number from within a file I’m editing but how can I have them always be on by default? 9 Answers 9
I can :set number from within a file I’m editing but how can I have them always be on by default? 9 Answers 9
In Vim, how do I insert characters at the beginning of each line in a selection? For instance, I want to comment out a block of code by prepending // at the beginning of each line assuming my language’s comment system doesn’t allow block commenting like /* */. How would I do this? 14 s … Read more
To search forward in Vim for cake, I’d type /cake, but the cursor jumps to the first match when I press return. Is there a Vim command analogous to “find next”? 7 s 7 It is n for next and N for previous. And if you use reverse search with ? (for example, ?cake) instead … Read more