Friday, February 1, 2013

Hopefully useful

Bash One-Liners :: bashoneliners.com

Vim..delete first 5 characters in a line
:%s/^.\{5}//gic

2 comments:

OJB said...

So you type 15 obscure characters to delete 5? No wonder GUI text editors are taking over!

Monica said...

The idea being of course that you can change the 5 to a larger number... like 4026 I think I ended up actually deleting ;)