14.06.2014 Views

vim 101 hacks

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Buyer: xiujuan lu (luxiujuan@gmail.com)<br />

Transaction ID: 85W16630AD8515549<br />

Vim <strong>101</strong> Hacks<br />

www.thegeekstuff.com<br />

Hack 7. Navigate to Top and Bottom of the File .......................... 28<br />

Hack 8. Navigate to N th Character, N th Percentage of a File ............ 28<br />

Hack 9. Line Number Navigation .............................................. 29<br />

Hack 10. Source Code Navigation ............................................. 30<br />

Hack 11. Navigate From Insert Mode ........................................ 31<br />

Chapter 4: Expert Navigation ....................................... 32<br />

Hack 12. Jump Using CTRL-O and CTRL-I ................................... 32<br />

Hack 13. Navigate Within a Very Long Line ................................ 33<br />

Hack 14. Vim Command Line Navigation .................................... 34<br />

Hack 15. Create Local Bookmarks inside file using Marks .............. 35<br />

Hack 16. Create Global Bookmarks inside Vim File ....................... 37<br />

Hack 17. How to Display all Bookmarks ..................................... 38<br />

Hack 18. Navigate any Source Code effectively using Ctags ............ 41<br />

Hack 19. Convert Vim Editor to Beautiful Source Code Browser for Any<br />

Programming Language ......................................................... 44<br />

Chapter 5: Basic Text Manipulation ............................... 49<br />

Hack 20. Insert or Append Text ............................................... 49<br />

Hack 21. Replace Text .......................................................... 50<br />

Hack 22. Substitute Text ....................................................... 51<br />

Hack 23. Change Text ........................................................... 52<br />

Hack 24. Join Lines Using nojoinspaces Option ........................... 52<br />

Chapter 6: Advanced Text Manipulation ......................... 54<br />

Hack 25. Copy One Character, or Word, or Line, or up to a Position 54<br />

Hack 26. Paste before or after the copied Line / Word / Others ...... 55<br />

Hack 27. Delete Single Char, or Word, or Line ............................ 56<br />

Hack 28. Inserting Content from Clipboard Buffer ....................... 57<br />

Hack 29. Insert Content to Clipboard from File ........................... 57<br />

Hack 30. Write Part of File to another File ................................ 58<br />

Hack 31. Swap Adjacent Characters ......................................... 58<br />

Hack 32. The power of the . (dot) Command .............................. 59<br />

Hack 33. Visual Mode Commands ............................................. 60<br />

3

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!