--server.port=8090
Thursday, 20 August 2015
Monday, 13 October 2014
How can I delete all lines in Vim?
To delete all lines in a file with vim you can type:
Another command for the same purpose is:
And one more command is:
:1,$d
in command mode. Semicolon(:) indicates a command, 1,$ indicates a range that following command will work. In that case from 1st line to the last line. d means delete the specified lines.Another command for the same purpose is:
gg
dG
gg takes you to first line and d means delete again and G means to the last line.And one more command is:
:%d
Friday, 10 June 2011
Introduction
As a computer engineering student it's a shame not to have a personal blog for years. I tried but I couldn't succeed. At this blog I'll try to note new things that I learned. Topic can change but mostly I'll try to write about programming. I like to code in Python and I want to learn Lisp. It is possible that the content can be very basic.
PS: I just decided to turn that blog to a FAQ about everything that I used to ask. Every post will be working solutions for me.
PS: I just decided to turn that blog to a FAQ about everything that I used to ask. Every post will be working solutions for me.
Subscribe to:
Posts (Atom)