Slide 1

Slide 1 text

Vim Rocks! Kent Chen

Slide 2

Slide 2 text

Kent Chen (chenkaie) chenkaie@gmail.com http://chenkaie.blogspot.com @chenkaie on GitHub @chenkaie on SlideShare @chenkaie on LinkedIn @chenkaie on Twitter

Slide 3

Slide 3 text

.X\ / Pronounce [vim]

Slide 4

Slide 4 text

-# c-& No basic training today

Slide 5

Slide 5 text

vq $' Neither bullshit, blah blah...

Slide 6

Slide 6 text

R~ Vim’s H@g+ Nor Vim clever tricks

Slide 7

Slide 7 text

l_E> Vim [vim] |„y Sharing my real-world experience

Slide 8

Slide 8 text

_ƒh LPda Discussion on Vim experience

Slide 9

Slide 9 text

U  1S Sharing your own experience

Slide 10

Slide 10 text

KR?P //192.168.59.78/Upload

Slide 11

Slide 11 text

8p7Z 5"PiI The Unwritten Rule

Slide 12

Slide 12 text

by aiink.com/c9s Vim is a REAL man's text editor

Slide 13

Slide 13 text

ˆA7ƒCz ntVY Never ignore the basic training

Slide 14

Slide 14 text

c-& xx`T= Basic training is a MUST

Slide 15

Slide 15 text

But...

Slide 16

Slide 16 text

!PWŠ ˆRrW Today we’re focusing on...

Slide 17

Slide 17 text

Vimƒh LPda Advanced Vim knowledge sharing

Slide 18

Slide 18 text

e€c-&Q ‚N/KoJ Recommended Vim basic training materials

Slide 19

Slide 19 text

by 0xlab/Jserv

Slide 20

Slide 20 text

by vgod

Slide 21

Slide 21 text

by Ted Naleid

Slide 22

Slide 22 text

by Michael

Slide 23

Slide 23 text

.‹ Cut to the chase

Slide 24

Slide 24 text

$HOME/.vimrc & Vim Plugins

Slide 25

Slide 25 text

M4Ž The very first trick

Slide 26

Slide 26 text

8p 7Zs} Again! The Unwritten Rule

Slide 27

Slide 27 text

e€^& ,29[ To Cut or Not to Cut That Is The Question

Slide 28

Slide 28 text

]Bw REAL Men never touch arrow keys

Slide 29

Slide 29 text

]B)O H J K L REAL Men use HJKL instead

Slide 30

Slide 30 text

ADM-3A Keyboard from Wikipedia

Slide 31

Slide 31 text

STOP using the arrow keys, Dude!

Slide 32

Slide 32 text

Vim Plugins or Vim Scripts

Slide 33

Slide 33 text

M4 Trick 1

Slide 34

Slide 34 text

Smart Home Key : Better Home key experience for editing, especially for coding

Slide 35

Slide 35 text

M4 Trick 2

Slide 36

Slide 36 text

vim-powerline : The ultimate vim statusline utility Mode > VCS > Filename fileformat < fileencoding < filetype < scrollpercent < lineinfo

Slide 37

Slide 37 text

M4 Trick 3

Slide 38

Slide 38 text

Tagbar : Display tags of the current file ordered by scope

Slide 39

Slide 39 text

M4* Trick 4

Slide 40

Slide 40 text

clang complete : Use of Clang for completing C/C+ + (IntelliSense-like autocomplete)

Slide 41

Slide 41 text

M4 Trick 5

Slide 42

Slide 42 text

neocomplcache: Ultimate auto-completion system for Vim

Slide 43

Slide 43 text

M4 Trick 6

Slide 44

Slide 44 text

vim-indent-object : Text Objects based on Indentation Level

Slide 45

Slide 45 text

M4 Trick 7

Slide 46

Slide 46 text

matchit.zip : extended % matching for HTML, LaTeX, and many other languages

Slide 47

Slide 47 text

M4 Trick 8

Slide 48

Slide 48 text

The NERD Commenter : A plugin that allows for easy commenting of code for many filetypes.

Slide 49

Slide 49 text

M4 Trick 9

Slide 50

Slide 50 text

snipMate : TextMate-style snippets for Vim

Slide 51

Slide 51 text

M4 Trick 10

Slide 52

Slide 52 text

matchit.zip : extended % matching for HTML, LaTeX, and many other languages

Slide 53

Slide 53 text

M4 Trick 11

Slide 54

Slide 54 text

SuperTab : Do all your insert-mode completion with Tab.

Slide 55

Slide 55 text

M4 Trick 12

Slide 56

Slide 56 text

vcscommand.vim : CVS/SVN/SVK/git/hg/bzr integration plugin

Slide 57

Slide 57 text

M4 Trick 13

Slide 58

Slide 58 text

DirDiff.vim : A plugin to diff and merge two directories recursively.

Slide 59

Slide 59 text

M4* Trick 14

Slide 60

Slide 60 text

Tabular : Vim script for text filtering and alignment

Slide 61

Slide 61 text

M4 Trick 15

Slide 62

Slide 62 text

Vundle : the plug-in manager for Vim

Slide 63

Slide 63 text

$HOME/.vimrc

Slide 64

Slide 64 text

M4 Trick 1

Slide 65

Slide 65 text

backup & swapfile

Slide 66

Slide 66 text

M4 Trick 2

Slide 67

Slide 67 text

ignorecase & smartcase

Slide 68

Slide 68 text

M4 Trick 3

Slide 69

Slide 69 text

: → ; & wildmode

Slide 70

Slide 70 text

M4* Trick 4

Slide 71

Slide 71 text

window operation

Slide 72

Slide 72 text

M4 Trick 5

Slide 73

Slide 73 text

tab operation

Slide 74

Slide 74 text

M4 Trick 6

Slide 75

Slide 75 text

WinMerge-style diff/merge operation

Slide 76

Slide 76 text

Reference Klayman’s .vimrc VIM Hacks (c9s) Perl Hacks on Vim (c9s) VIM - Hack Your Editor! (yzlin) My .vimrc http://github.com/chenkaie/DotFiles/blob/master/.vimrc