Openwest 2015 - Erik Falor - "From Vim Muggle to Wizard in 10 Easy Steps" (8)

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 พ.ค. 2015
  • Vi is more than just a text editor; it has become a way of life for power users who can get more done than their peers who use traditional pointy-clicky editors.
    In this talk you will uncover an unseen world inhabited by Wizards who effortlessly modify their text using powerful commands built upon surprisingly simple concepts. It is my goal is to invite you into this world and to arm you with 10 of the most useful Vi concepts, giving you the biggest personal productivity boost that can be had in 50 minutes.
    We will discuss the most successful Vi clone of them all, Vim, which is available on just about any platform you might encounter and has been actively developed for over 20 years. We will also explore Neovim, a project that seeks to modernize and streamline the world's best editor.
    Whether you are already a Vi wizard or an uninitiated muggle, there is something new for you to learn in this session.
    Thursday, May 7th, 10:30am-11:15am
    Room SB 134 (Large)
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 115

  • @gracen9714
    @gracen9714 4 ปีที่แล้ว +39

    Awesome talk! Loads of humor, great historical context-ing, genuine enthusiasm from speaker, well-prepped content.... all in all, pretty awesome presentation. Thanks for posting!

  • @AndreasAltendorfer
    @AndreasAltendorfer 5 ปีที่แล้ว +56

    I'm using vim since 1982 and every time I watch videos like this, I learn something new ;-)

    • @stevefoster4732
      @stevefoster4732 4 ปีที่แล้ว +1

      You mean vi?

    • @nkristianschmidt
      @nkristianschmidt 4 ปีที่แล้ว

      @@stevefoster4732 or 1992

    • @stevefoster4732
      @stevefoster4732 4 ปีที่แล้ว +1

      @@nkristianschmidt Yes, probably just a typo.

    • @nkristianschmidt
      @nkristianschmidt 4 ปีที่แล้ว

      @@stevefoster4732 mmmmnoooo, it is something deeper...like this commentry thread...and my lockdown boredome...

  • @neaumusic
    @neaumusic 7 ปีที่แล้ว +29

    3:44 "ken thompson, if you've looked up history this guy's a genius"

  • @Ellieakacija
    @Ellieakacija 7 ปีที่แล้ว +119

    >Gives talk about being more efficient
    >mashes jjjjjjjjjjjj to scroll

    • @padraig6563
      @padraig6563 6 ปีที่แล้ว +3

      or just { } p g g ' '' to scroll

    • @NostraDavid2
      @NostraDavid2 ปีที่แล้ว

      While true, I think it was a boon to the presentation. If someone ^d or ^u I usually can't mentally follow along which direction they jumped, so using jjjjj makes for a smoother experience.
      But yes, the irony is not lost on me.

  • @RamakrishnaAppicharla
    @RamakrishnaAppicharla 4 ปีที่แล้ว +1

    Absolutely fantabulous ending... Wah!!! May the VIM be with us... Always...

  • @mohamedaminebenmabrouk
    @mohamedaminebenmabrouk 4 ปีที่แล้ว +2

    One of the best vim talks !!! Thank you so much

  • @bhupeshimself
    @bhupeshimself 3 ปีที่แล้ว +4

    Ah man I implemented the in-text command execution thing like 2 days ago after switching to vim full-time and now I realised there is a better way to do it !!!!
    Worth watching, thanks 🔥

  • @ewfalor
    @ewfalor 2 ปีที่แล้ว +5

    The slides are now at unnovative.net/vim_muggle_to_wizard.pdf
    Dotfiles are at github.com/fadein/dotvim

    • @NostraDavid2
      @NostraDavid2 ปีที่แล้ว +1

      Hi Erik, I loved the presentation! I learned a lot!
      I am curious what you used as presentation software. You used figlet for the large text, that was clear by your demonstration, but you had some sort of pagination going on?

    • @ILaiG
      @ILaiG ปีที่แล้ว

      Hi Erik. Thank you for what you're doing. I've just completed your shell-tutor course (well, got to a point where student access seems to be mandatory to git clone assn0). You just make learning these things effortless. I'm so grateful to you. Would you care packing this lecture handout into a vim-tutor? The built-in vimtutor is all about navigation. It doesn't provide a clear path to actually start using vim. From my experience with your shell-tutor, your 10 vim steps would make a great path.

    • @landnoman824
      @landnoman824 ปีที่แล้ว

      hooray! Vim evangelist.

  • @MrApplewine
    @MrApplewine 8 ปีที่แล้ว +75

    I've concluded that using Vim is not the hard part. Setting it up is the hard part.

    • @kelly5247
      @kelly5247 8 ปีที่แล้ว +5

      I agree! neocomplete is easier to setup than youcompleteme haha.

    • @Baconator1368
      @Baconator1368 4 ปีที่แล้ว +4

      ? there's literally nothing to set up. just type in "vim" in a terminal and you're all set.

    • @davidchristenes9062
      @davidchristenes9062 4 ปีที่แล้ว +12

      @@Baconator1368 If you program in any language you know that IS not true...
      Plain vim lacks a lot of his potential, plain vs code or plain sublime/atom are 1000x better than vim...
      You don't have simplistic code completion, and If you say some shit like "hur dur real programmers don't use completion" you really don't program anything is just a poser.
      So yes, Vim potential came with a long setup time, when it's done vim is Just fast than anything.

    • @Baconator1368
      @Baconator1368 4 ปีที่แล้ว +16

      @@davidchristenes9062 Vim has simplistic code completion. Just type -n while in insert mode. I use it all the time. It seems you're just not aware of the features of vim.
      And you don't need a massive complex "long time set up" to get efficient at vim. My vimrc is only 21 lines and I'm able to edit code at a much faster rate than in VS code. Although I do agree if you are a new programmer, you shouldn't try to learn vim at the same time as learning your first language.
      But there is a reason they are teaching vim to these MIT kids. Once you become comfortable in programming, you are doing yourself a huge favor if you learn vim.

    • @davidchristenes9062
      @davidchristenes9062 4 ปีที่แล้ว +1

      @@Baconator1368 I totaly agree with you, don't get my wrong... but you just add to my arguments.
      It's not by default, PLAIN VIM don't came with almost anything, you don't open vim and magicaly knows that vim had a simplistic autocompleter, as the famous meme people don't even know how to quit vim on the first try.
      About those features for example, i use vim for years not only vim but mainly vim, and i never used the simplistic completion...
      I never even heard of that in fact...
      If you type autocomplete for vim on TH-cam or Google you will face YCM plugin.
      What i'm trying to say is, vim does not came as an easy editor people who never use vs code in their life can install right now and use some awesome features, the learning curve is massive fast.
      Vim don't have that, a new vim user will not be aware of all vim features he will need to search even for the basic ones like highlight and line numbers(that IS not the case for many others text editors).
      There no simply thing when we talk about vim.

  • @Mietchannel
    @Mietchannel 4 ปีที่แล้ว +2

    Such a good presentation, idk how but he managed to make a somewhat boring topic exciting

  • @Sawta
    @Sawta 8 ปีที่แล้ว +3

    I liked the talk, but a lot of this flew over my head.

  • @anteconfig5391
    @anteconfig5391 5 ปีที่แล้ว +12

    damn. I didn't know you could write a program in the editor and make it run and output back into the editor. That sound useful.

  • @mercurysquad
    @mercurysquad 7 ปีที่แล้ว +1

    Phenomenal talk!

  • @jsd4544
    @jsd4544 ปีที่แล้ว +1

    Great talk 🙂

  • @vertigo6982
    @vertigo6982 5 ปีที่แล้ว +29

    vim.. where hitting your keyboard with a hammer will actually do something.

    • @reveluv8851
      @reveluv8851 3 ปีที่แล้ว +1

      @@knightsofni0 :quit is hard to get if you hit it with a keyboard

  • @neotherebeltn
    @neotherebeltn 4 ปีที่แล้ว +1

    Where can we find the lab files used in this video

  • @MrDienigma
    @MrDienigma 5 ปีที่แล้ว +4

    Can I get the download link to the download bundle?

  • @aqg7vy
    @aqg7vy 5 ปีที่แล้ว

    Great talk

  • @redartist
    @redartist 4 ปีที่แล้ว +1

    I didn't really understand much, but i just enjoyed the speaker's nerdy passion for the history and evolution of vim. the jokes were good too, but it felt like the audience were just dead or tired at that point.

  • @mbrumlow
    @mbrumlow 6 ปีที่แล้ว +92

    I feel like this guy's jokes were lost on this audience. :(

    • @anteconfig5391
      @anteconfig5391 5 ปีที่แล้ว +34

      That's ok 'cause it went right over their heads and straight into the camera for us to enjoy.

    • @charlesfleetwood3914
      @charlesfleetwood3914 5 ปีที่แล้ว +1

      @@anteconfig5391 lol

  • @picosdrivethru
    @picosdrivethru 4 ปีที่แล้ว +3

    I think bill thought very much about design, he's a big design inspiration for me actually

  • @remrevo3944
    @remrevo3944 ปีที่แล้ว +1

    5:23 I actually have caps lock bound to Ctrl and use Ctrl-k and Ctrl-l to escape, as I often use Ctrl for other programs.

  • @arielgabizon78
    @arielgabizon78 4 ปีที่แล้ว +2

    updated link to demo file?

  • @xealit
    @xealit 7 ปีที่แล้ว +1

    thanks a lot!

  • @yandereSyndrome
    @yandereSyndrome 5 ปีที่แล้ว +3

    The intro blew out my ears

  • @randomness3235
    @randomness3235 3 ปีที่แล้ว +1

    Where can I get that OpenWest2015_vim.tgz, it's no longer available from that site.

  • @geoptus
    @geoptus 5 ปีที่แล้ว +3

    Has amyone managed to find the demo file? have searched high and low and would love to follow along.

    • @ThoughtLateral
      @ThoughtLateral 5 ปีที่แล้ว +7

      Yes. He has removed them from his website (unnovative.net) but thanks to someone archiving them, I found them here:
      ZIP containing the demo.txt he uses in the presentation: web.archive.org/web/20150804204922/unnovative.net/OpenWest_vim.zip
      PDF with the presentation slides: web.archive.org/web/20150804204922/unnovative.net/Erik_Falor_Vim_Wizard.pdf

  • @doodoostickstain
    @doodoostickstain 7 ปีที่แล้ว +3

    can we get the vimrc to follow along? Edit: i'm stupid. i saw "broken link", and didn't scroll further down or click. scroll down for link ::rolls eyes:: lol

  • @SwarangaSarma
    @SwarangaSarma 3 ปีที่แล้ว +9

    I completed 10 years of programming in my job this year and I have mostly done Java. I have never managed to get over the hump of the initial learning curve of vim mainly because I don't see the value of the editor in my profession. I can do the basic stuff like search/replace, explore production logs etc but I still don't see why I would use this as my main IDE replacement. Even if I could get to a stage where I am a really good at editing text, for me, typing/editing has never been my main bottleneck. Most of the time I am staring at the code, mentally linking it to the rest of the project, thinking about the data structures, interfaces, seeing how if I change something breaks compilation in some other file/module etc.
    When it comes to changing text, I am never really editing text, I am refactoring, which is a big difference for me. For instance, I am never playing with lines/words - I am working with methods, expressions, classes and their hierarchy. A common refactoring would be to "move this method to its parent class" or something like "extract this expression that I am passing to a method call into a local variable and also replace it with the new local variable in the two other places where I am reevaluating the same expression needlessly; oh and also assign a good name for the variable based on the type/expression context and also immediately give me the control back so I can simply type a different variable name if I feel the default you assigned is not good enough" - this entire refactoring is one command Ctrl+Alt+V. How will I do these simple refactorings in vim which does not have such deep understanding of what the text represents?
    I am not trying to insult anyone; infact I do want to learn vim and get really better at it. Why wouldn't I if it helps me be more effective in my job? I am not married to any IDE nor do I hold any stock of any iDE company. But everytime I bring this up in a vim community, I get downvoted or told I haven't used it correctly. And I really admire the folks which have shown the dedication to learn this tool and get so much better at it but I could never convince myself if it is for me and is worth the effort to spend months learning it.

    • @ravenoversnow
      @ravenoversnow 3 ปีที่แล้ว +13

      You've mentally divided vim from IDEs, when that's not the case. IDEs have vim plugins, both Intellij or Eclipse have good ones. Rethinking vim as an abstract 'keyboard interface' instead of just a text editor is the point I'm stressing. This interface may be applied to various tools: IDEs, text editors, web browsers, music players, etc. Applying this interface to various keyboard related tasks can improve one's efficiency in repetitive typing actions, writing boilerplate syntax, and navigation/searching/reading code, etc. Your specific point, regarding refactoring methods/classes is directly address with vim's notion of a text object. Moving, editing, replacing text objects (be they classes, methods, functions) is one of vim's strengths.

  • @rohscx
    @rohscx 2 ปีที่แล้ว

    Thanks 🙏

  • @afroninjadeluxe
    @afroninjadeluxe 6 ปีที่แล้ว +3

    Doesnt Blender fall under the category of "mashing buttons and not caring about under the hood"?

  • @_xeere
    @_xeere 4 ปีที่แล้ว

    Kept thinking those plugs were the x button on an advert.

  • @LarryDias
    @LarryDias 5 ปีที่แล้ว +5

    I would a link to download his files, does seem good.

    • @ThoughtLateral
      @ThoughtLateral 5 ปีที่แล้ว +13

      demo.txt: pastebin.com/SJ8DeFCH
      ZIP containing the demo.txt he uses in the presentation: web.archive.org/web/20150804204922/unnovative.net/OpenWest_vim.zip
      PDF with the presentation slides: web.archive.org/web/20150804204922/unnovative.net/Erik_Falor_Vim_Wizard.pdf

    • @chandbasha6008
      @chandbasha6008 5 ปีที่แล้ว +1

      @@ThoughtLateral Thank you so much

    • @TripurariSSINGH
      @TripurariSSINGH 5 ปีที่แล้ว

      @@ThoughtLateral Thanks

    • @jainramchurn4059
      @jainramchurn4059 5 ปีที่แล้ว

      @@ThoughtLateral Thank you.

  • @frozen_tortus
    @frozen_tortus 5 ปีที่แล้ว +17

    10:43 starts

  • @nicewook
    @nicewook 8 ปีที่แล้ว +1

    Thanks for the good job!
    wish you could share your ppt and vimrc, etc.
    duno why, but I cannot access to unnovative.net

    • @ewfalor
      @ewfalor 8 ปีที่แล้ว

      +Kiwook Jeong Thanks for your encouraging words. I recently moved house and changed my internet provider, and my RPi was offline for a bit. Please try again!

  • @jag831
    @jag831 3 ปีที่แล้ว +4

    There is a problem with knowing vim, and Eric's absolutely right: you want to :x from everywhere, and "w" even when typing a url...

    • @tissuepaper9962
      @tissuepaper9962 2 ปีที่แล้ว +2

      The number of times I've accidentally typed ":wq" at the end of a file in some other editor is embarrassing lol.

    • @jag831
      @jag831 2 ปีที่แล้ว

      @@tissuepaper9962 damn muscle memory haha

    • @user-he4ef9br7z
      @user-he4ef9br7z ปีที่แล้ว

      Pressing J on a browser and wondering why it isn't scrolling down.

    • @NostraDavid2
      @NostraDavid2 ปีที่แล้ว

      @@user-he4ef9br7z quick, install the addon Vimium or Tridactyl!

    • @user-he4ef9br7z
      @user-he4ef9br7z ปีที่แล้ว

      @@NostraDavid2 I'm more of a Vieb man myself.

  • @anthonydesouza9983
    @anthonydesouza9983 4 ปีที่แล้ว +2

    Slides: unnovative.net/Erik_Falor_Vim_Wizard.pdf

  • @jaytaylor9045
    @jaytaylor9045 4 ปีที่แล้ว +2

    C.O.M.
    Count
    Operator
    Motion

  • @compphysgeek
    @compphysgeek 4 ปีที่แล้ว +6

    Emacs Rules! .. in particular in combination with evil mode!

  • @Maaruks
    @Maaruks 8 ปีที่แล้ว +26

    is vim better than emacs?

    • @finan2249
      @finan2249 8 ปีที่แล้ว +8

      +Maaruks YES!

    • @AntonGraschenkov
      @AntonGraschenkov 8 ปีที่แล้ว +5

      +Maaruks Just try emacs with evil-mode ;)

    • @doodoostickstain
      @doodoostickstain 7 ปีที่แล้ว +4

      jihad, jihad

    • @CanMetan
      @CanMetan 7 ปีที่แล้ว +7

      Or you can try spacemacs. I think Vim is already complicated enough.
      My pinky thanks me for not using emacs.

    • @jerril42
      @jerril42 7 ปีที่แล้ว +3

      You have to make that choice yourself. The tricky bit is they both are hard to learn, so you may be tempted to stay with the first one you try. I tried vim, then emacs, and went back to vim mostly because I already had vim in my head. I've never looked back, vim is awesome. You can't go wrong by learning it.

  • @dr.5404
    @dr.5404 3 ปีที่แล้ว +1

    Shortcut lis:
    Esc - Undo all actions
    Shift + : - Show command line
    i - INSERT
    Ctrl + w + v - Create new window
    Ctrl + w + H/J/K/L - Switches to the windowses
    h - Move the cursor one character left
    Ctrl + J - Move the cursor down one line
    Ins - Paste
    p - Paste
    y - Copy
    i - Move the cursor one character right
    O - Move the cursor to the begining of the line
    $ - Move the cursor to the end of the line
    G - Move the cursor to the end of file
    a - Insert text after the cursor
    A - Insert text at the end of the line
    x - Delete character at cursor
    dw - Delete a word
    dO - Delete to the begining of a line
    d$ - Delete to the end of a line
    d) - Delete to the end of sentence
    dgg - Delete to the beginning of the file
    dG - Delete to the end of the file
    dd - Delete line
    3ddd - Delete three lines
    r{text} - Replace the character under the cursor
    R - Replace characters instead of inserting them
    yy - Copy current line into storage buffer
    P - Paste storage buffer before current line
    u - Undo the last operation
    Ctrl + r - Redo the last undo
    ?search_text - Search document for search_text going backward
    n - Move the next instance of the result from the search
    N - Move to the previous instance of the result
    v - Enter visual mode per character
    V - Enter visual mode per line
    d - Delete a word
    :w - Save the file
    :q - Quit
    :w file_name - Save the file with the new file name
    :wq - Save the file and quit
    :q! - Quit vim without saving the changes
    Shift + v - Select full lines

  • @lksjfadlk
    @lksjfadlk 3 ปีที่แล้ว +3

    47 people use emacs.

  • @cloakintersection7756
    @cloakintersection7756 7 ปีที่แล้ว +17

    the ten steps were supposed to be easy

    • @jacobitosuperstar
      @jacobitosuperstar 5 ปีที่แล้ว +1

      i learned nothing... i will just continue eternally in vim as a fucking dumbass...

    • @speakthetruth3684
      @speakthetruth3684 5 ปีที่แล้ว +2

      @@jacobitosuperstar in 45 minutes all I learnt was how to comment out multiple lines 😭

    • @jacobitosuperstar
      @jacobitosuperstar 5 ปีที่แล้ว +1

      @@speakthetruth3684 you are a master, i didn't get that either.

  • @padraig6563
    @padraig6563 6 ปีที่แล้ว +2

    why did he spend like 3 minutes on :s when every modern text editor has this feature

  • @moofymoo
    @moofymoo 8 ปีที่แล้ว +4

    well, well, but wizards don't misclick keys and puke vim commands in file they are editing.

  • @erxiaowang7577
    @erxiaowang7577 7 ปีที่แล้ว

    Vim is great, but this speech is just so ......

  • @catlord69
    @catlord69 5 ปีที่แล้ว

    horrible pov

  • @thingsiplay
    @thingsiplay 3 ปีที่แล้ว

    I am 10 minutes in and he still just talks around. This is not the kind of talk I am looking for.

  • @trashcan3958
    @trashcan3958 5 ปีที่แล้ว

    People say that vim will make you more productive, but from what I have seen so far, it takes way more key strokes to do something in vim than other text editors. And having multiple modes for different opdrations is just dumb.

    • @eatcomics
      @eatcomics 5 ปีที่แล้ว

      I mean, it can save you time in certain repetitive instances, it's also the only editor that I've found that I can navigate around a file quickly (besides emacs of course) But yeah, I mean, depends on how into vim you get, and really any productivity gains are completely foobar by the amount of time you spend fucking with your config file. Still definitely something you should know if you're a sysadmin or do a lot of programming on linux. Even if it's not your main editor for code, it can be really useful for XML files, config files, and just supporting files like that. It's not for everyone, or every situation, but it's a damn good tool to keep in your belt. (I started using spacemacs in evil mode and I get the best of both worlds, except it's sooo much more bloated and slow than vim. But as an IDE, it's pretty amazing.)

    • @The9TKitsune
      @The9TKitsune 4 ปีที่แล้ว +2

      Thing is, Vim's magic really only emerges when you're doing mass text manipulation. If you're just using it to write small things with minimal editing, it's just fancy Notepad. But if you're, say, working with a massive code base and need to move around and do big edits very fast, it's amazing. Vim is also very very fast, and can load massive files without any lag.

    • @The9TKitsune
      @The9TKitsune 4 ปีที่แล้ว +3

      In the words of a famous stack overflow answer: you dont get vim cause you dont grok vi. Vi is a language, and vim normal mode can be thought of much like a REPL. Once you understand the grammar, and the mnemonics for the words, you can mash it together in very powerful ways- this is what makes it better than a generic set of shortcuts.

    • @coolkats9331
      @coolkats9331 2 ปีที่แล้ว +1

      Vim isn't for boys but men

  • @Loppy2345
    @Loppy2345 4 ปีที่แล้ว +1

    Wow, the arrogance of VIM users who thinks they are superior to everyone else puts me off from calling myself a VIM user.

  • @josephmbimbi
    @josephmbimbi 4 ปีที่แล้ว +3

    10 minuts in. I find the speaker arrogant and obnoxious with this wizard / geniuses theme and this kind os "i'm awesome attitude". Maybe it is some kind of joke i'm just not into or whatever but it sure annoys me a lot.
    But hey it's not like this elite whatever attitude is not pervasive among programmers.

    • @NostraDavid2
      @NostraDavid2 ปีที่แล้ว

      I think he meant them as nerdy references and not as actual "we're better than them", but I understand why you'd feel that way.

    • @null7936
      @null7936 ปีที่แล้ว

      Exel at annoyance , become awesome genius at it !!!

  • @wolandsmachine
    @wolandsmachine ปีที่แล้ว

    horrible presentation