emacs lightweight options and vim

I use emacs all of the time. However, the problem with emacs is that it is very heavy duty and usually not available on embedded targets.

Zile and mg and two light-weight options for emacs (sudo apt-get install mg zile )

Also, it is good to know how to use vim

Quick starter

Open file [Esc first] :e
Save & Exit - [Esc first] :wq
Save - [Esc first]:w
Don't save & Exit - [Esc first]:!q

Up - [Esc first] k or Up arrow
down - [Esc first] j or Down arrow
left - [Esc first] h or Left arrow
right - [Esc first] l or right arrow
start of line - [Esc first] ^
end of line - [Esc first] $
page up - cntrl+b
page down - cntrl+f
Goto line x - xG

undo - [Esc first] u
redo - [Esc First] Shift+r
delete char - [Esc First] x
delete word - [Esc First] dw
delete line - [Esc First] dd

search - [Esc first] /
next - n
prev - Shift+n

help - [Esc first]:help
or start from command line
$ vimtutor

No comments: