14 Oct 2008 at 00:37 #1 Shaye87 Shaye87 Associate Joined 29 Apr 2006 Posts 1,456 when i enter edit mode with vim, "vim file", how do i save changes and close the window? my first time :|
when i enter edit mode with vim, "vim file", how do i save changes and close the window? my first time :|
14 Oct 2008 at 01:06 #2 tntcoder tntcoder Soldato Joined 7 Apr 2004 Posts 4,212 Hit Esc to enter command mode then: :q = quit :q! = quit no save :wq = quit & save :w = save Great command list here: http://www.tuxfiles.org/linuxhelp/vimcheat.html lots of them!
Hit Esc to enter command mode then: :q = quit :q! = quit no save :wq = quit & save :w = save Great command list here: http://www.tuxfiles.org/linuxhelp/vimcheat.html lots of them!
14 Oct 2008 at 08:40 #4 sidethink sidethink Associate Joined 13 Apr 2007 Posts 961 Location Belfast, Northern Ireland Best of luck learning vim - persevere though its a handy little tool to know your way around.
14 Oct 2008 at 10:02 #5 Garp Garp Soldato Joined 18 Oct 2002 Posts 10,573 Location Seattle You will almost certainly find this to be quite useful