Vi

907 views

Published on

LUG@IITD workshop presentation

Published in: Education, Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
907
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
20
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Good morning, everybody – this is Ankit Malik, I am a 2 nd year student of the Mathematics department here at IITD. And I am here to give a presentation on Vim. Well, so a bit on the presentation - Well so I will start with a bit of introduction on text editors, then move on the main topic – Vim. I will talk about its features, its advantages, its disadvantages. Then I will end up with how to get started with using VIM. What I won't be discussing is the syntactic details of Vim.That is what command does what, pressing what keys give me what...So this is a presentation for beginners, so if you know what Vim is, well have fun spotting some errors!
  • Vi

    1. 1. <ul><ul><li>Vim - &quot;Vi Improved&quot; </li></ul></ul><ul><ul><li>Ankit Malik </li></ul></ul><ul><ul><li>[email_address] </li></ul></ul>
    2. 2. Where Does Your Text Go? <ul><li>Where Does Your Text Go? </li></ul><ul><li>A Word Processor ? - computer application used for the production of any sort of printable material. </li></ul><ul><li>A Text Editor – A Program to write and edit plain text files. </li></ul><ul><li>Eg. Notepad, Gedit, Kate, Nano, Pico, Emacs....Vim! </li></ul>
    3. 3. Vim <ul><li>Vim – Vi-Improved </li></ul><ul><li>Vi + lots of features = Vim! </li></ul><ul><li>First public release in November 1992. </li></ul>
    4. 4. Simple But Powerful <ul><li>Simple to get started with. </li></ul><ul><li>Powerful beast. </li></ul><ul><li>Powerful – do more with less. </li></ul>
    5. 5. Example Code : <ul><li>For example : </li></ul><ul><ul><li>How do you move the cursor down by 30 lines -30 j </li></ul></ul><ul><ul><li>How do you delete a word? -dw </li></ul></ul><ul><ul><li>What about deleting 100 lines? - 100dd </li></ul></ul><ul><ul><li>How do you search the file for the current word that the cursor is currently placed on? - * </li></ul></ul>
    6. 6. Optimises Hand Movements <ul><li>Doesn't require a mouse. </li></ul><ul><li>Commands are (mostly) alpha – numeric characters. </li></ul><ul><li>Optimisation helps in the long run. </li></ul><ul><li>Compare with GUI text editors. </li></ul>
    7. 7. Syntax Highligting <ul><li>Vim supports syntax highlighting for more than 180 languages. </li></ul>
    8. 8. Extensible <ul><li>Vim is extensible. </li></ul><ul><li>One can write macros, plugins, scripts to extend Vim's functionality. </li></ul>
    9. 9. More Uses <ul><li>Powerful searching : regular expressions. </li></ul><ul><li>Auto indentation : useful for programmers. </li></ul><ul><li>Split windows / tab windows. </li></ul><ul><li>Multiple language support. </li></ul><ul><li>And more... </li></ul>
    10. 10. Word of Caution <ul><li>Getting started – beginner stuff – easy. </li></ul><ul><li>Intermediate level – takes time and patience. Can be frustrating. </li></ul><ul><li>But efficiency gained in the long run is worth the effort. </li></ul><ul><li>So don't give up, if you plan to type a lot! </li></ul>
    11. 11. <ul><ul><li>Hands-On-Session </li></ul></ul>
    12. 12. Recap – Some Commands <ul><li>1. Modes – i, ESC </li></ul><ul><li>2. Navigation – h,j,k,l, w, } </li></ul><ul><li>3. Cut/Copy/Paste – d,y,p </li></ul><ul><li>4. Searching - /<searchword> , n,p </li></ul><ul><li>5. (Not) Saving – w,q, wq, q! </li></ul>
    13. 13. The End <ul><li>Where to go from here? </li></ul><ul><ul><li>Vim Tutor - $ vimtutor </li></ul></ul><ul><ul><li>'A Byte of Vim' - http://www.swaroopch.com/notes/Vim </li></ul></ul><ul><li>Questions? Feedback? Errata? </li></ul>

    ×