vim
DESCRIPTION
Vim introduction and basic features.TRANSCRIPT
a Serious Text Editor
Juri Timošin
whoami
● Infrastructure engineer
● 8 years of text editing
● 3 year vim “guru”● Ruby fan
I've been using vi and vim also for some 20 years and I'm still learning new things.
Anonymous @Stackoverflow
Learn Vim?! What for?
● Learn once, use everywhere● Lightweight● Fast (even with huge files)● Edit zip files● Lifelong● Vim is everywhere
○ Gmail, G+ / Facebook○ Google Rss Readers○ Firefox / Chrome (vimperator / vimium)○ Touchscreens! (WAT!?)
Learn Vim?! What for?
● Learn once, use everywhere● Lightweight● Fast (even with huge files)● Lifelong● Home row friendly● Vim is everywhere
○ Gmail, G+ / Facebook○ Google Rss Readers○ Firefox / Chrome (vimperator / vimium)○ Touchscreens! (WAT!?)○ Even Your Kitchen and Bookshelf
Modes
Normal InsertVisual
Command Line
i
::
vEsc
Replace
R
insert
Basic Features
● h j k l● 0 ^ $ (home and end)● w e b W E B (word vs WORD)● f t F T (forward and back)● gg H M L G● d dd ( dd = act on line )● y yy ● p P● u● .
Sprechen Sie Vim?
● d$● y2E● d2t,
● 2i● “ay2f3 (s/a/+/ - to act on system clipboard)
Command Line
● :help [topic]● :!<shell command>● :%s/ddd/ttt/[gci]
Where To Start
● Vim: revisited● Learn Vim Progressively● Vim Adventures● Why do those nutheads use vi?!● Vim as your IDE● Vim for Rubyists● Vim for Happy Java Coding● Different cheat sheets● Books● vimtutor