A quick tip for those who use Vim: if you need to remove several lines that match your regular expression, you can achive that by running
Let's say you want to remove the commented lines from the following file:
ruby
def foo
end
def bar
end
Run :g /^#.*/d
and your code will become:
rubydef foo
end
def bar
end
Simple, hey? :)
Post atualizado em 02/10/2017, 10:00:00
💬 Comentários desativados temporariamente. Desculpe pelo inconveniente.