Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
"make" system



Power of vi

Related Books

Free with a 30 day trial from Scribd

See all

Power of vi

  1. 1. Power of vi© 2010 Anil Kumar Pugalia <> All Rights Reserved.
  2. 2. What to Expect?Versions of viHandy TutorialPatterns in viMagic with vi © 2010 Anil Kumar Pugalia <> 2 All Rights Reserved.
  3. 3. vi Versionsvi stands for “visual” First in its series After the line editors like ed Dates back to QWERTY keyboard days Designed to get maximum with minimumvim – vi improvedgvim- graphical vim © 2010 Anil Kumar Pugalia <> 3 All Rights Reserved.
  4. 4. visual Editor BenefitsKey to Productivity Initial learning curve But goes down fast with practice Delivering more in long run Including generating codeSpeed without being Typist No mouse & Minimized keypad usage Short cutsUnique features like Recording © 2010 Anil Kumar Pugalia <> 4 All Rights Reserved.
  5. 5. Handy Tutorial for Starters“vimtutor”Type it on your shellAnd try it right nowFollow what it saysAnd there you go using vim © 2010 Anil Kumar Pugalia <> 5 All Rights Reserved.
  6. 6. Patterns in viModes: Command (Esc), File (:), EditEdit Modes: a, i, o and A, I, OOperations: c, d, r, s, y Prefix: Repeat for line, w for word Capitals: Till end of lineUndo: u, Redo: Ctrl+RPrefix numbers for repeatingSearch: / ? © 2010 Anil Kumar Pugalia <> 6 All Rights Reserved.
  7. 7. Magic with viWrite a program to print from 1 to 1000 Without using any loops, conditionals, gotosPrint all in 4-digit formats prefixed by 0sNot really 0s but spacesMany more things ... Including recording across multiple files © 2010 Anil Kumar Pugalia <> 7 All Rights Reserved.
  8. 8. What all have we learnt?Versions of vi: vi, vim, gvimHandy Tutorial: vimtutorPatterns in vi: Command SetMagic with vi: Recording © 2010 Anil Kumar Pugalia <> 8 All Rights Reserved.
  9. 9. Any Queries?© 2010 Anil Kumar Pugalia <> 9 All Rights Reserved.
  • HareKishnaRoy

    Jul. 16, 2015
  • saiteja967

    Jul. 10, 2013
  • selvaraj_salem85

    Mar. 11, 2011


Total views


On Slideshare


From embeds


Number of embeds