Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ 1 [2] >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Midnight Commander not saving changes??< Next Oldest | Next Newest >
Headhunter Offline





Group: Members
Posts: 9
Joined: Dec. 2005
Posted: Dec. 20 2005,09:43 QUOTE

Quote (mikshaw @ Dec. 16 2005,23:46)
[quote=Phinger,Dec. 16 2005,16:03]w to save and :wq to save and quit.

How do I get to print "w" or "wq" in VI?? When I write it with the keyboard it prints this in then file.. Is there a buttom to push?? Whitch one??

Thx in forhand...


--------------
DSL-2.1 IBM TP760xl p166mhz 72mb ram 3gbhdd
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Dec. 20 2005,16:59 QUOTE

If it prints what you type in the file buffer, you are in insert mode.  Press Esc to get back to normal mode (for entering commands) and type :w to write the file or :wq to to write and quit. The colon tells vim that the following will be a command rather than a control/navigation key.
http://vimdoc.sourceforge.net/

You can also change your mc editor using the EDITOR environment variable.  Open up ~/.bashrc and add "export EDITOR=nano" to use nano instead of vim.  Keep in mind this won't affect shells that are currently open, so you'll probably want to restart X (exit fluxbox then type 'startx').


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
6 replies since Dec. 14 2005,20:59 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: Midnight Commander not saving changes??

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code