Jump to: Cursor Navigation (if your arrow keys dont work on that old Sun box....), Fast Search, Command Mode, From Normal to Edit Mode, Clipboard
J | Next line |
K | Previous line |
H | Left |
L | Right |
Shift+G | Bottom of document |
GG | Top of document |
/ | Search Term |
N | Next |
Shift+N | Previous |
: | enter command mode |
:w | write |
:q | quit |
:q! | quit without saving |
:wq | Write and quit |
ZZ | Write and quit |
:e <filename> | open <filename> |
Esc | escape command mode |
u | undo last command |
I | Insert at current position |
I | Insert at start of line |
A | Append to end of line |
O | Insert Line Below |
O | Insert Line Above |
S | Delete character at current position and insert |
S | Delete the current line and insert |
dw | delete word |
dd | delete line |
P | put after cursor |
P | put before cursor |
yw | copy word |
yy | copy line |
Created by terryrankine on 7/11/2012. Last updated by admin on 11/29/2020
Advertising for Consideration:
Ads for Consideration:
Please kindly review and accept Terms of Use and Cookie & Policy Policy
5 Comments for 'vi ' [post comment in main thread]
Comment #5 by Andy Jan 9, 2019 at 11:10 am Reply
N Previous should be: Shift + N Previous
Comment #4 by Wesley Steinbrink Jan 31, 2017 at 10:54 pm Reply
In addition to Emacs with Evil mode, there is Spacemacs: http://alejandroerickson.com/j/2016/06/11/emacs-to-evil-to-spacemacs-a-journey.html It appears to be a better Emacs with Vim combination
Comment #3 by Anonymous Mar 30, 2016 at 09:50 am Reply
Kindly check your VI commands
Comment #2 by Wesley Steinbrink Jul 5, 2015 at 08:09 pm Reply
New link for the Derek Wyatt Vim Tutorials: http://derekwyatt.org/vim/tutorials/index.html
Comment #1 by Wesley Steinbrink Nov 20, 2013 at 03:07 pm Reply
vi is actually combinations of single letter shortcuts in the normal mode.
Your vi shortcuts need to mention going from insert mode to normal mode (Using Esc or Ctrl-[):
http://vim.wikia.com/wiki/Avoid_the_escape_key
Some good links are
http://zzapper.co.uk/vimtips.html
(note the link to more vi books)
and
the graphical cheat sheet:
http://www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html
and
http://www.derekwyatt.org/vim/vim-tutorial-videos/
and for using as a plugin for emacs (scalpal on top of swiss army knife)
http://www.emacswiki.org/emacs/Evil
Reply #1 Wesley Steinbrink Nov 20, 2013 at 03:24 pm
Note also - most of the letters for control in normal mode coordinate with the first letter of English words for character manipulation.