Vim week

1,523 views
1,395 views

Published on

I heard from many sources that my productivity would increase if I used Vim as my text editor. I attempted to scale the steep learning cliff (not so much a curve...). One week I decided that I would learn by forcing myself to use vim all week. Since that week I've embraced my inner vim. In this talk I will go over the resources I used to learn vim and the basic cool operations that I love with vim. Topics will include basic text operations, vimrc, creating color schemes, and using vim plugins. If you ever wanted to give vim a shot but didn't know where to start, then you can start here.

Published in: Technology, Art & Photos
0 Comments
6 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,523
On SlideShare
0
From Embeds
0
Number of Embeds
126
Actions
Shares
0
Downloads
73
Comments
0
Likes
6
Embeds 0
No embeds

No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Vim week

    1. 1. VIMhow one week changed my mind
    2. 2. Who am I? Jonathan Birkholz codemav.com/rookieone @rookieone
    3. 3. ChaiONEHouston, TX Rails iPhone Android HIRING Developers and Project Managers
    4. 4. www.virtualbrownbag.comThursday 12pm-1pm central
    5. 5. www.codemav.com consolidate profiles build an identity earn points stay connectedJOIN TODAY!please give feedback :)
    6. 6. Who are you?
    7. 7. One Week Challenge vim and only vim for one week
    8. 8. Why Learn vimexpand horizonchallenge yourselfbe cool
    9. 9. What I love about vim control customization
    10. 10. vim != FAST
    11. 11. Not an Expert
    12. 12. Outline• Vim Introduction• Learning Resources• Normal, Edit, Visual Modes• Plugins• Color Schemes• Vimrc
    13. 13. vim History• Bram Moolenaar released in 1991• original copy of vi• feature set now surpasses vi• free and open source• supported on many platforms
    14. 14. • like bikes Text Editor
    15. 15. Advanced Text Editors
    16. 16. Textmate
    17. 17. IDEs
    18. 18. vim
    19. 19. Where can I learn about vim?
    20. 20. www.vimcasts.org www.peepcode.comwww.derekwyatt.org/vim/vim-tutorial-videos/
    21. 21. Vimmy
    22. 22. Now lets get our vim on
    23. 23. File Commands :q quit :w save :e open
    24. 24. vim is modalNormalInputVisual
    25. 25. Normal Mode
    26. 26. Basic Navigation H J K L K H L J
    27. 27. HJKL Fail
    28. 28. Easy Mode use your keyboard arrows
    29. 29. g File G
    30. 30. ^ $ Line
    31. 31. w skip wordword word word b previous word
    32. 32. W skip WORDword word word B previous WORD
    33. 33. Jump to Line Number :n nGn line number
    34. 34. DEMO
    35. 35. Edit Mode
    36. 36. I i insertHello Worldappend a A
    37. 37. open aboveO Hello Worldo open below
    38. 38. exit edit mode; returnesc to normal mode
    39. 39. DEMO
    40. 40. Delete Yank Cut, Copy, Paste
    41. 41. Delete aka Cut dd delete line d delete word
    42. 42. Yank aka Copy Yank / Copy • yy yy yank line • cw yw yank word
    43. 43. p paste afterHello World P paste before
    44. 44. DEMO
    45. 45. vimisms
    46. 46. w word d lined $ to end of line + ^ to begin of line g to begin of file G to end of file
    47. 47. :wq save quitea append at end of wordcw replace word
    48. 48. vim comamnds> do it. repeatu undo / reverse
    49. 49. upper vs lower casecan be opposite commandcan also be extreme version ofcommand
    50. 50. DEMO
    51. 51. Visual Mode
    52. 52. Visual Mode v select range ctrl + v select block
    53. 53. DEMO
    54. 54. Search
    55. 55. Search / searchtext
    56. 56. navigate matches N n match matchprevious match next match
    57. 57. move screen focus zt focus cursor on top zz focus cursor in middle zb focus cursor on bottom
    58. 58. Replace:s/old/new
    59. 59. DEMO
    60. 60. Plugins~/.vim/pluginC:Program Files (x86)Vimvimfilesplugin Found online www.vim.org www.github.com
    61. 61. NERD Treeproject directory tree
    62. 62. Fugitivevim plugin for git
    63. 63. Railsvim plugin for rails
    64. 64. Pathogenvim plugin for... plugins
    65. 65. Janus github.com/carlhuda/janus opinionated vim package for Mac
    66. 66. DEMO
    67. 67. Color Schemes
    68. 68. Color Schemescomes with several schemes :colorscheme name :color name
    69. 69. Custom Color Schemes vimcast : create color scheme
    70. 70. color schemes~/.vim/colorsC:Program Files (x86)Vimvimfilescolors syntaxes~/.vim/syntaxC:Program Files (x86)Vimvimfilessyntax
    71. 71. DEMO
    72. 72. vimrc
    73. 73. whatset defaultsmap keyspersonalize your vim experience where~/.vimrcC:Program Files (x86)Vim_vimrc
    74. 74. nmap <silent> <c-n> :NERDTreeToggle<CR> map ctrl+n to NERD Tree Toggle
    75. 75. set guifont=Menlo Regular:h18 set font to Menlo font size 18
    76. 76. " Presentation colors and config function! PresentationMode() colorscheme solarized set bg=light set nolist endfunction nmap <leader>PR :call PresentationMode()<cr>pressing PR changes color scheme to solarized
    77. 77. DEMO
    78. 78. Let’s wrap it up
    79. 79. Some things we didn’t cover Tabs Windows Recording / Playback Running commands And much, much more
    80. 80. Other tools • Peep Open • Keycastr
    81. 81. vim in other apps • vimperator - Firefox • vimium - Chrome • viEmulator - Visual Studio • and others...
    82. 82. References Flickr• vimcast• vim.org • greasylightbulb• vim.wikia.com • chocolatebubbles • u2ultraviolet81• Star Wars • Dave Linscheid• Kung Fu Panda
    83. 83. www.codemav.com consolidate profiles build an identity earn points stay connected JOIN TODAY!seriously... create an account already
    84. 84. I needz more vim! www.virtualbrownbag.com Thursday 12pm-1pm central
    85. 85. Questions?
    86. 86. buffers :blast last buffer File File:bnext next buffer

    ×