Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

For the best experience please use the latest Chrome, Safari or Firefox browser.

Vim

Efficiency in text editing

Camille TJHOA - ESIPE MLV

Summary

Vi IMproved

  1. Quick overview
  2. Vim bases
  3. Speak vim
  4. Advanced usage

Vim

Vi IMproved written by Bram Moolenaar,

Advantages

X independant

1st approach

OMG I’m gonna die

  1. Too much shortcuts
  2. I don’t understand
  3. Go to nano, gedit, etc

Learning vim

Difficult

Inefficiency

Judge yourself

  1. Detect your inefficiency
  2. Find a quicker way
  3. Make it a habit

Inefficiency

Judge yourself

Modal editing

Bases

Commands

Bases

Move around

Bases

Move by line

Bases

Vim sentence

Speak Vim

Verb → Modifier → Noun (Text object, ...)

Verb: c (change) 
Modifier: i (inside)
Noun: w (word)
		

In normal mode

Verbs

Speak Vim

Modifiers

Speak Vim

Text objects

Speak Vim

Quizz

Speak Vim

  1. Delete till the end of line ??????
  2. Change in () ?????????
  3. Delete current line + the next line ??????????

Quizz

Speak Vim

  1. Delete till the end of line <d><$>
  2. Change in () <c><i><(>
  3. Delete current line + the next line <d><j>

Historic

Like a boss

Search

Like a boss

For all : <n> next, <N> previous, <ESC> escape

Actions on lines

Like a boss

Actions on lines

Like a boss

Actions on lines

Like a boss

Case sensitive

Like a boss

Alternate visual modes

Like a boss

  1. Visual line <V>
  2. Visual block <Ctrl><v>

Split

Like a boss

Autocompletion

Like a boss

Follow a file

Like a boss

Plugins way!

References

Conclusion

  1. Difficult to learn ...
  2. ... but not so hard if you understand vim logic
  3. Daily use

Questions ??