Slide 1

Slide 1 text

Vim introduction @Dmitrijs Vrublevskis

Slide 2

Slide 2 text

About me • Developer @ “Transact PRO” • Unhappy with PHP • In love with Ruby • Believe in Linux

Slide 3

Slide 3 text

Backup plan https://www.codebox.io

Slide 4

Slide 4 text

Intro • Programmer's text editor • Released publicly in 1991 • Based on the vi editor • Vim is a tool, the use of which must be learned. • Shortcuts & no-mouse

Slide 5

Slide 5 text

My use cases • Ruby (Rails) development (sometimes) • One-time source editing (bugfixes, types and etc) • Editing via SSH (nginx, apache, hosts and etc) • Diff (rarely) • Development (Intellij IDEA plugin)

Slide 6

Slide 6 text

$ vim file.txt § - command sequences for pro

Slide 7

Slide 7 text

Slide 8

Slide 8 text

Modes • Insert • Normal ! • Visual • Command

Slide 9

Slide 9 text

Modes[Insert] 1. Insert A. Cursor - B. Append - C. On new line - 2. Type text 3. Exit -

Slide 10

Slide 10 text

Modes[Normal] • Left - - • Right - - • Down - - • Up - - ! • § 5l • § 2j

Slide 11

Slide 11 text

Modes[Normal] • Word - • End word - • Back word - • Find - ! • § F2e • § t”

Slide 12

Slide 12 text

Modes[Normal] • Delete under cursor - • Replace - • Delete - • Change - • Motion - || … ! • § d5k • § ca”

Slide 13

Slide 13 text

Modes[Visual] • Visual - • Line visual - • Block visual -

Slide 14

Slide 14 text

Modes[Command] • Write - <:> • Quit - <:> • Write and quit - <:> • Write and quit - <:> • Quit without save - <:> • Search - • Next / Prev - /

Slide 15

Slide 15 text

Useful • § <“> - Delete all in “” and put in insert mode. • § <)> - Delete all till first ‘)’ • § <.> - Write some text and repeat • § <(> - Move cursor to first ‘(‘, backwards

Slide 16

Slide 16 text

Learn vim • http://www.viemu.com/ a_vi_vim_graphical_cheat_sheet_tutorial.html • http://vim-adventures.com/ • https://www.shortcutfoo.com

Slide 17

Slide 17 text

Vim projects • http://neovim.org/ - New next generation • https://github.com/gmarik/Vundle.vim - Plugin manager • https://github.com/Valloric/YouCompleteMe - Autocompletion • https://github.com/FylmTM/dotfiles/blob/master/ vim/vimrc - Mine ‘.vimrc’

Slide 18

Slide 18 text

No content