vim
DESCRIPTION
VIM. @ RoyOsherove http://key.bo/apps/16-vim 7enn.com. Why VIM?. Lightweight Everywhere Remote coding via ssh Pair programming ( ssh + tmux ) Important skill (like regex) Feel Stupid, Learn Something. Learning. versions. 7.3+ Vi (vim) - PowerPoint PPT PresentationTRANSCRIPT
![Page 2: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/2.jpg)
Why VIM?
• Lightweight• Everywhere• Remote coding via ssh• Pair programming (ssh + tmux)• Important skill (like regex)• Feel Stupid, Learn Something
![Page 3: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/3.jpg)
Learning
![Page 4: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/4.jpg)
versions
• 7.3+• Vi (vim)• Gui-vim (macvim, gvim on windows\linux)
![Page 5: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/5.jpg)
Configuration
• .vim file• .vim directory• Vim scripts and plugins• Google “vim Janus”• Github astrails dotvim
![Page 6: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/6.jpg)
http://tuxradar.com/content/vim-master-basics
![Page 7: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/7.jpg)
http://amalloy.hubpages.com/hub/Why-old-text-editors-are-still-great
![Page 8: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/8.jpg)
http://blog.interlinked.org/tutorials/vim_tutorial.html
![Page 9: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/9.jpg)
http://www.viemu.com/vi-vim-cheat-sheet.gif
![Page 10: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/10.jpg)
Favorite Plugins
• Surround plugin• Rails• Nerdtree• Command-t (fuzzy finding)
![Page 11: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/11.jpg)
Favorite keys
• Cw and ciw• S)• Shift-v to line selection• Cc to change line• Dd to delete line
![Page 12: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/12.jpg)
Practice cw
• Load up piece of text• Use / to find instance of ‘the’• Use ‘cw’ to change ‘the’ to ‘your’• Use ‘esc’ and then ‘n’ to move to next find• Use ‘.’ to repeat• Use ‘n’ and ‘.’ to repeat as many times as
possible
![Page 13: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/13.jpg)
Practice ciw
• Load up piece of text• Use / to find instance of ‘he’• Use ‘ciw’ to change ‘the’ to ‘your’• Use ‘esc’ and then ‘n’ to move to next find• Use ‘.’ to repeat• Use ‘n’ and ‘.’ to repeat as many times as
possible
![Page 14: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/14.jpg)
Practice o and O
• Load up piece of text• Use j to go to 2nd line• For each line use shift O to enter a line above
and o to insert a line below• Use . To repeat actions
![Page 15: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/15.jpg)
Other vims
• vsVim for visual studio• ViEmu for Word• Vimium and vimperator for firefox and chrome• Vi-like command line in zsh (configure
yourself)
![Page 16: VIM](https://reader036.vdocuments.mx/reader036/viewer/2022062811/56816262550346895dd2c2b8/html5/thumbnails/16.jpg)