What’s a quick way to comment/uncomment lines in Vim?
I have a Ruby code file open in vi, there are lines commented out with #: class Search < ActiveRecord::Migration def self.up # … Read more
I have a Ruby code file open in vi, there are lines commented out with #: class Search < ActiveRecord::Migration def self.up # … Read more
Many of you have probably seen the command that allows you to write on a file that needs root permission, even when you … Read more
Want to improve this post? Provide detailed answers to this question, including citations and an explanation of why your answer is correct. without … Read more
I’m trying to replace each , in the current file by a new line: :%s/,/\n/g But it inserts what looks like a ^@ … Read more
It should be trivial, and it might even be in the help, but I can’t figure out how to navigate it. How do … Read more
I’m stuck and cannot escape. It says: “type :quit<Enter> to quit VIM” But when I type that it simply appears in the object … Read more