Тёмный

Learning Vim in a Week 

Подписаться
Просмотров 463 тыс.
% 8 820

Mike Coutermarsh presents a talk based on his great blog post, Learning Vim in a Week. The talk is beginner focused and covers getting up and running, and eventually productive with Vim.
Learn more from the developers at thoughtbot ⌨️
Head over to tbot.io/dev-blog to read more great articles on our blog.

Наука

Опубликовано:

 

8 сен 2014

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 363   
@kennyken7604
@kennyken7604 5 лет назад
after opening vim for the first time, you can''t quit. that's how addictive it is
@monkeydkfetus
@monkeydkfetus 5 лет назад
:q!
@aswintgopal
@aswintgopal 5 лет назад
😂😂😂
@VeryVeryBlackGuy
@VeryVeryBlackGuy 5 лет назад
I felt these words, i really had to exit from vim thru restart :')
@johannielsen8197
@johannielsen8197 4 года назад
:q :P
@marshallhughes4514
@marshallhughes4514 4 года назад
@@VeryVeryBlackGuy lol. What is that old joke? If you ever want to get a new password put a newbie in Vim and ask them to quit. The resulting stream of characters will be the hardest password to crack.
@krazyhand1653
@krazyhand1653 7 лет назад
The lecture starts at 11:00
@robodoctor
@robodoctor 5 лет назад
omg. thanks
@Tux0xFF
@Tux0xFF 5 лет назад
Thank you, You just saved me 10 minutes and 59 seconds
@andrewbennett2903
@andrewbennett2903 5 лет назад
@@Tux0xFF No, he saved you 11 minutes. Time starts at 0, not 1 second.
@garthok6224
@garthok6224 5 лет назад
@@andrewbennett2903 well it depends on which second he clicked the time in the first comment.
@user-yr1zx2nc5k
@user-yr1zx2nc5k 5 лет назад
BrewNCode 哈哈哈哈哈哈
@pangpengmaster
@pangpengmaster 6 лет назад
I learnt Vim a year ago. I could probably say, it is the most significant thing i've learned in my life just after learning how to read.
@AdamSmith-de5oh
@AdamSmith-de5oh 3 года назад
@Rep 101 I would say more life the difference between using two fingers to type and looking down at the keyboard to full on touch typing.
@mattk6343
@mattk6343 3 года назад
@@AdamSmith-de5oh When you combine touch typing + vim mastery, passersby are like "WTF is that guy doing, that's impossible"
@peripona
@peripona 6 лет назад
That’s the most fluent talk on vim I have seen. Motivates me to start it now
2 года назад
I started learning Vim with this video around 6 years ago. I came across Vim when I had RSI problems in my wrist and try to get rid of mouse. Since then I am using Vim mainly. Thanks again!
@angela_jx
@angela_jx 5 лет назад
One of the biggest advantages I’ve had with using vim for about 3 years now is that it simply doesn’t matter what system you’re on, whether if there’s Sublime or VS Code or whatever you usually use. Vim or Vi is pretty much pre-installed on every system. So you’re not only more effective and efficient but you’re also not dependent on any other text editor going forward
@dysonlu
@dysonlu 7 лет назад
4:12 "God forbid Eclipse". I already love this video! LOL
@husam1919
@husam1919 7 лет назад
I agree with you, it's a well-made talk. However, that sentence hit me right in the feels :(
@EarnestRedwoodLINUXMASTER
@EarnestRedwoodLINUXMASTER 9 лет назад
Thanks Mike you did a great job on how I should approach Vim. I am a Linux Admin and form looking at this video this will help me out about.
@humbertocontreras
@humbertocontreras 5 лет назад
Totally agree. Learning Vim is a process. I've been using it for about 13 years and I'm still learning new things every month.
@herewego1067
@herewego1067 5 лет назад
You must be dumb as fuck then because there is not that much things to learn on vim. 13 years lmao, stop being extra
@ahmaddynugroho
@ahmaddynugroho 3 года назад
Wtf dude, It took me less than a month to get used to basic vim. And actually using it to code
@kosodrzewinka
@kosodrzewinka Год назад
This was insanely helpful! Been using Vim for around 2 months and this video really was a breakthrough for me.
@Pittsburghfix
@Pittsburghfix 6 лет назад
Great video , I am now learning vim and it's going well after only a day. The one thing that helped me was to use chrome extension vimium in conjunction with vim. Seems to be easier as I am making use of all the navigation commands while browsing the web.
@ThomasKingo1
@ThomasKingo1 9 лет назад
This was really inspiring. Vim sounds like an investment in life. Only one thing left to do. Practice, practice, practice.
@alexanderkaiser7377
@alexanderkaiser7377 8 лет назад
Great Talk! Thx! On El Capitan you don't need Karabiner. Simply adjust "Key Repeat" and "Delay Until Repeat" under System Preferences > Keyboard. I'm from Germany and use a German Keyboard Layout for tickets and mail and from now on an US Layout for coding and vim. If I need Umlauts, I switch back and forth with ctrl+space instantly.
@KensterInSilico
@KensterInSilico 6 лет назад
Thank you for introducing me to Vim and suggesting vimtutor. Life changing video!
@Ahabite
@Ahabite 8 лет назад
Presenter's dotfiles: github.com/mscoutermarsh/dotfiles
@joemw8806
@joemw8806 7 лет назад
The hero we need;
@edotk
@edotk 9 лет назад
best vim intro i've seen to date! +1
@anteconfig5391
@anteconfig5391 5 лет назад
With you help I think I can learn vim in 2 days! Thank you very much.
@theena
@theena 3 года назад
Started vim last week. Thank you for this.
@MaggotDiggo1
@MaggotDiggo1 4 года назад
Learning Vim is like learning to type. It's frustrating but worth it in the long run.
@javierchacon1456
@javierchacon1456 6 лет назад
Excellent starting point to learn this tool. Thanks a lot.
@BishishtBhatta
@BishishtBhatta 8 лет назад
thanks for the screencast man :) really appreciated :)
@marufhasan9365
@marufhasan9365 3 года назад
One cool thing I have learned recently that Crtl+C does the same thing as ESC, which saved me a lot of time when changing mode. Another thing is that you can jump to any line by typing 'gg'. That certainly makes navigation easier.
@limitless1692
@limitless1692 Год назад
I remaped Ctrl + C and Ctrl + V to copy and paste.. I still use Y for yank text and P for puting it ... But I love the convenience to copy paste from other applications, through the OS clipboard... Fun times :)
@bastianwegge
@bastianwegge 9 лет назад
Thanks a lot for this! Perfect tutorial to start from.
@samsamhuns928
@samsamhuns928 4 года назад
Wtf, this is some life-changing material. Especially after reducing my key delay I think my typing speed just exploded lol.
@prasannarajaram4713
@prasannarajaram4713 7 лет назад
I should actually _thank you_ for the nice presentation. I just want to take all your points and use it for *Emacs*. It fits it well 1. Different from everything you have used before 2. Don't start at work 3. Break up with your mouse 4. But can it? ---- yes it can! 5. Always a better way! 6. Learn something every week And the quote from Tom too... " Sometimes you got to work a a little so you can ball a a lot "
@metthewsobol
@metthewsobol 8 лет назад
Very comprehensible introduction, thanks! :)
@kuruptgt
@kuruptgt 2 года назад
10:40 the key repeat setting can now be changed in your terminal: defaults write -g InitialKeyRepeat -int 10 # normal minimum is 15 (225 ms) defaults write -g KeyRepeat -int 1 # normal minimum is 2 (30 ms) It's life changing. You're welcome.
@filipetamaral
@filipetamaral 8 лет назад
This key repeat tip, THANK YOU!
@Sintaxx2
@Sintaxx2 9 лет назад
Very useful Vim intro and entertaining as well! :)
@md.abdullahal-alamin8059
@md.abdullahal-alamin8059 7 лет назад
This is a great tutorial. Thanx a lot...
@ianpan0102
@ianpan0102 5 лет назад
[ Emacs User Alert! ] The biggest problem with Vim keybindings that I could think of is that it really gets deep in your brain, and you'll not be able to effectively edit text on other software or platform without constantly reminding yourself NOT to use 'hjkl' to navigate or press 'i' and 'ESC' to hop in and out of Insert Mode. While with Emacs bindings all the navigating shortcuts are prefixed with Ctrl or Meta (Alt) and can be ported to different platforms once you get used to it!
@nicemelbs
@nicemelbs 6 лет назад
Thanks for this talk. I'm starting to learn vim and yeah, it's a pain in the ass. One thing though, as I get used to moving around and doing advanced stuff in vim, and I press alt+tab to switch to another window, I forgot that I'm in another "mode" it confuses me that I can't navigate say through a web page like I do in vim.
@noodle7788
@noodle7788 Год назад
for those on linux, you can change key repeat with 'xset r rate 300 50', of course can play around with those numbers and throw it in your bashrc for persistence
@FictionsAndIllusions
@FictionsAndIllusions 8 лет назад
Thank you for this video. I watched this video and got started with VIM. however, I'm struggling with setting up color schemes for VIM. I've loaded the vim file to ~/.vim/colors and configured my .vimrc file, but every time I start VIM I get a long list of errors. I've tried multiple themes and all seem to do the same. Any help is appreciated. I've also subscribed as I'm interested in learning more about VIM and how to maximize efficiency while programming.
@jedgar6653
@jedgar6653 5 лет назад
This was a great intro to Vim for a someone who's only seen Vim used in memes
@trieder
@trieder 5 лет назад
man. a week. i use vim since 20 years and im still learning.
@dontbetoxic4387
@dontbetoxic4387 3 года назад
wow you have to be fast
@WhiteSiroi
@WhiteSiroi 9 лет назад
Awesome, thank you mate.
@kudryavtsevalexandr
@kudryavtsevalexandr 9 лет назад
Thanks. Not bad presentation for beginners. It introduces some really cool vim's features which I like and using so much at work. And advices are good for people of any level, too (and not about Vim, but everything in our life, when we want become experts), as I think.
@limitless1692
@limitless1692 Год назад
True. Becoming an expert at something takes a lot of time... The good part about VIM is that will be here forever. Not like other gui text editors that come and go...
@shalizi1280
@shalizi1280 8 лет назад
Very nice presentation, very cool. Thank you
@evergreen-
@evergreen- Год назад
9:18 regarding Caps Lock to Escape key remap, on macOS 13 Ventura the remap can be done natively by going to Settings > Keyboard > Keyboard Shortcuts... > Modifier Keys > in a dropdown menu set Caps Lock key to Escape
@TH-gu4wj
@TH-gu4wj 7 лет назад
Nice talk. Easy to remain engaged. Thanks!
@informatom
@informatom 9 лет назад
Very encouraging! Thanks!
@GenesisGuerrero
@GenesisGuerrero 9 лет назад
great presentation, was very useful to me
@DVRC
@DVRC 5 лет назад
I started to learn Vim by my own because i was attracted by it, i am even learning to touchtype by using it a lot. The next step for me would be to get an HHKB and use it to code
@Starcruiser15
@Starcruiser15 7 лет назад
i was looking for the softdrink Vim!
@noswonky
@noswonky 4 года назад
I've been using vi/vim for 32 years and I still consider myself a beginner.
@xit
@xit 4 года назад
Remapping ESC to Capslock is super beneficial if you have MacBook with touch bar model(2016-2018)
@ruizhang9291
@ruizhang9291 6 лет назад
Map caps-lock to control, use C+[ instead of ESC.
@TomHallam
@TomHallam 9 лет назад
Very Accessible. Great information for someone considering making the switch. If I do cross over from Sublime, this will make it a much better transition. Thank you.
@SoundToxin
@SoundToxin 5 лет назад
I don't think remapping caps to escape is necessary at all. Been using it for a few years and am pretty good with it. A lot of people go after the capslock to rebind it for other things, so I'm always nervous to pick one and then feel I'm missing out on something else later. In the past I used caps as super while using a Model M because it didn't have a super key. I've seen someone remap it as "hyper" which is a modifier you don't really see on keyboards anymore, and it allowed them to use even more shortcuts. Kind of a neat idea.
@ayoolao.5865
@ayoolao.5865 7 лет назад
i have been successful in changing the caplock to escape, but i can't seem to change the escape to caplock. What can i do?
@hermannpaschulke1583
@hermannpaschulke1583 4 года назад
Caps lock to escape is a great idea :D
@Epsio0
@Epsio0 8 лет назад
How do I version control my vimrc? I can open my .vimrc file but I don't exactly know where it's located
@fmailscammer
@fmailscammer 2 года назад
Ctrl+C also works in place of escape without remapping
@j_white1305
@j_white1305 7 лет назад
Good presentation, thanks!
@michalroesler
@michalroesler 2 года назад
Can You please tell what edit should be made in .vimrc to remap CapsLock to Esc key? Everybody talks about doing it, but no one showed exactly how to do this.
@affiliatewatch
@affiliatewatch 4 года назад
I've been learning for years and still find things difficult 😂 but overall it does increase my productivity. BEWARE: The learning curve is steep however well worth it! 👍
@Pablo-qi3hz
@Pablo-qi3hz 8 лет назад
nice! thanks for the video!
@youtongzheng9543
@youtongzheng9543 4 года назад
very clear and engaging presentation
@prashantsingh-fg3ok
@prashantsingh-fg3ok 9 лет назад
Yes Change Inside ) is easier to rem. than CI) command . :)
@mitchelltaylor2346
@mitchelltaylor2346 9 лет назад
Nice talk thank you. Although I still use the capslock key sometimes so instead of remapping it I tend to use the Ctrl-[ combination which achieves the same thing.
@GrayOlson
@GrayOlson 9 лет назад
I like to remap it to "jk" since I never use those two keys next to each other in quick succession.
@elisson357
@elisson357 5 лет назад
Thanks for sharing this.
@mattetis
@mattetis 5 лет назад
Actually should have slow key repeat as you should be discouraged of pressing something for a duration and instead try to duplicate the action the exact number of times instead. It will make you a better vimmmer in the long run :)
@DeadEnvyAlive
@DeadEnvyAlive 5 лет назад
this !
@nikanj
@nikanj 7 лет назад
I want to learn Vim but at the same time I don't think it will make me more productive. I spend most of my time trying to figure out what's going on and debugging. Only a fraction of my time is spent typing out actual code. Maybe when I reach a stage when I can get an idea and bang it out in 15 minutes then Vim might look more enticing.
@tuerda
@tuerda 5 лет назад
I agree that actually writing code is not the thing that slows down work. Most work does not happen sitting in front of a terminal typing, but rather mulling things over in your head and figuring out what the right thing to write is. -- That said, I use vim! I don't necessarily use it for speed so much as for the grammar. The way you work in other editors treats text as a collection of letters, rather than sentences, blocks or ideas. Vim helps me write code more or less in the same way that I think about it, and I find that this makes a real difference.
@rafeu2288
@rafeu2288 3 года назад
In this case maybe "Glamorous Toolkit" is more what you need. It focuses on helping the "reading process" by making it less "manual"
@JosePablo24
@JosePablo24 7 лет назад
pain on the wrist/right hand while using your mouse is from bad posture, which puts unnecessary stress on your wrist, your elbow should be at the same height as your wrist resting on the table
@SlyPearTree
@SlyPearTree 2 года назад
I am not sure making key repeat faster is a good idea for a vim beginner as it might delay or even stop them learning all the ways to move the cursor other than just hjkl.
@rajkrishan3092
@rajkrishan3092 8 лет назад
found it very useful... thnx
@voiceoftreason1760
@voiceoftreason1760 6 лет назад
i completed vimtutor but the vimcasts still look too advanced for me. i tried a couple.
@AnatolyKhalizev
@AnatolyKhalizev 9 лет назад
In your github repo "dotfiles" we changing gitconfig and other files via terminal comands. It is secure and don't broke my github or other things?
@clixm
@clixm 9 лет назад
Anatoly Khalizev Yup! Everything should be fine. If you find problems, please open an issue in the repository. I'd love to know. It's possible mine break, since they are "mine" and I'm constantly changing them :). I recommend using Thoughtbots at first if just getting started. They are better documented.
@deepamgupta8011
@deepamgupta8011 3 года назад
Link to dotfiles: github.com/mscoutermarsh/dotfiles github.com/thoughtbot/dotfiles
@joxim697
@joxim697 6 лет назад
I prefer Ctr + C, instead of Esc, and no need for remapping it to Caps Locks.
@cocbuilds
@cocbuilds 4 года назад
yeah cap locks also works quite well
@MaggotDiggo1
@MaggotDiggo1 4 года назад
One of they tutorials I read recommended J+K to exit insert mode. Your fingers are always on J and K plus no words contain the letters jk.
@johnc3403
@johnc3403 4 года назад
the caps lock remapping is awesome. Changing modes is as simple as your moving your pinkie one key to the left. Well worth the effort of remapping. In linux you can do it yourself, in windows, there is a small exe that does it for you. Google is your friend. just do it.. ctrl-c is waaaay too much work in comparison... i mean, just look where your caps lock is?
@johnc3403
@johnc3403 4 года назад
caveat: If you are a two finger typer, ctrl-c may be good enough, but for touch typing, mapping your caps lock key is a no brainer.
@pepijnkrijnsen4
@pepijnkrijnsen4 3 года назад
@@johnc3403 But what if you need to shout on the internet!?
@MrKlaygomes
@MrKlaygomes 7 лет назад
karabiner doesnt work for macos sierra :(
@omc345
@omc345 8 лет назад
Is it possible to download the keynotes?
@aim__freakz8499
@aim__freakz8499 2 года назад
for some reason i love vim without even using it for programming :D also i always watch these vim videos high ^^
@danielrodrigoalegriasallo6479
@danielrodrigoalegriasallo6479 2 года назад
Pretty useful, thanks.
@AsbjornOlling
@AsbjornOlling 6 лет назад
Isn't this the same intro music that Level1Techs uses in their news podcasts?
@kevinmjomba3394
@kevinmjomba3394 Год назад
The first time vim completely blew my mind was when I first learnt about text objects, block objects and object motions 🤯🤯😂i was so excited, I spent the rest of that day just giggling at my screen 😭😂I had unleashed too much power 😂😂. I'd also recommend learning about jumps, the jump-list and how to navigate it. You become really sneaky in vim if you can move around quickly ti where you want to edit and actually make those edits 👌🏾. I know I've already said a lot (😂i can't shut up about vim), please make it a habit of reading the vim's own help documentation whenever you learn about a new cool command, I feel like it helps you get a perspective of how vim actually 'sees' things, understanding things from the editor's point of view. 😂 let me end this long rant here😂 :wq
@limitless1692
@limitless1692 Год назад
I was an Atom user. But after what happened to Atom, that it will be abandoned by Microsoft in December this year... I decided to take the plunge and dive deep into VIM. I can say I only have one regret: "I regret that I did not start earlyer in my life to code in VIM..."
@user-zi4zh7nb2i
@user-zi4zh7nb2i 8 лет назад
thanks,i think it is very good for me
@rahulbhola4657
@rahulbhola4657 9 лет назад
Really nice talk . cheers :)
@haraldurkarlsson1147
@haraldurkarlsson1147 3 года назад
This is neat. Learning anything in depth is difficult. Now try to follow up by doing LaTeX inside Vim - two hard editors one inside the other.
@albertodlh
@albertodlh 9 лет назад
OS ten! TEN! besides that, awesome talk.
@Zyztematic
@Zyztematic 8 лет назад
Or even better: disable key repeat entirely.
@regedit33
@regedit33 8 лет назад
Yeah, maintaining pressed a key or pressing it multiple times is the equivalent of a code smell. That would be a "Vim smell" meaning that you have to find a better way to do this. example: stop smashing/maintaining j and k. Use Ctrl-e and Ctrl-y, and if you find it too slow, remap it so it scrolls 3 lines instead of one.
@bradleyfrueh2761
@bradleyfrueh2761 9 месяцев назад
You don't need to remap the caps lock key to esc. Ctrl+c will cancel commands and has the side effect of escaping out of insert mode.
@bradleyfrueh2761
@bradleyfrueh2761 9 месяцев назад
and other modes.
@alexismandelias
@alexismandelias 3 года назад
For me vim works best as a plugin for other _IDEs_ like Eclipse. That way I can edit code quickly without sacrificing the functionality provided by an IDE (debugging, bulk refactoring, advanced searching, to name a few)
@meuko
@meuko 2 года назад
You can do all those things with vim too :)
@ahmadaziz1800
@ahmadaziz1800 9 лет назад
This video is so inspiring :]
@sviatoslavoleksiienko8523
@sviatoslavoleksiienko8523 3 года назад
Guys, do you know some great analog of karabiner in windows 10?
@Ahabite
@Ahabite 8 лет назад
Thoughtbot's dotfiles: github.com/thoughtbot/dotfiles
@rabokel
@rabokel 3 года назад
I want to learn it because intellij has problems working via x11 forwarding
@SubZeroGuitarPlayer
@SubZeroGuitarPlayer 4 года назад
anyone have a link to the slides?
@kevinstuart6921
@kevinstuart6921 2 года назад
Vim tutor is amazing.
@josevillegas5243
@josevillegas5243 9 лет назад
Hello, what do you think of using Sublime in Vintage mode with the VintageEx package?
@nXqd
@nXqd 9 лет назад
you can start with it. I recommend you to start with something you are familiar with then you'e convinced. You can move fully when you fell like it. But still, it depends on how you learn new things.
@hahahaspam
@hahahaspam 9 лет назад
I think your wrist was hurting because you were using your arrow keys, and Vim eliminates that. Just think about how contorted your right wrist gets to use the arrow keys for a couple seconds. That's also why I swapped my caps lock and backspace (takes a bit to get used to).
@Clockworkscom
@Clockworkscom 5 лет назад
windows alternative to karabiner?
@limitless1692
@limitless1692 Год назад
Nice and friendly video. Thanks for sharing :)
@nonono4160
@nonono4160 2 года назад
You actually should start at work. Just don't delete your previous editor/ide/whatever. That way you will learn how to do stuff in vim that is actually important for your workflow. And if you need to do something very quick and you don't know how to vim yet, just switch back. Eventually you will stop switching back and that is the moment when you are ready. Ready to start learning how to improve your worflow with vim instead of just duplicating it from previous ide :)
@varshard0
@varshard0 11 месяцев назад
Yeah, or just use vim keymap on an ide. Can always use it the IDE's way when you don't know how to do it the vim way.
@LukeWatts85
@LukeWatts85 8 лет назад
Chuck Norris tried Vim once...and only once
@nickr753
@nickr753 8 лет назад
+Luke Watts When he was done he never needed to write plaintext again.
@LukeWatts85
@LukeWatts85 8 лет назад
I meant Vim beat him...because it was harder than Chuck Norris
@khatuntsovmikhail6223
@khatuntsovmikhail6223 6 лет назад
And he was able quit. Himself. Without google.
@blasttrash
@blasttrash 5 лет назад
Legend says that he is still using Vim to either generate a random string or to quit the program. :P
@90hijacked
@90hijacked 5 лет назад
Legend has it chuck norris wrote all the the helpfiles with a single roundhouse keystroke
@fallenentity2
@fallenentity2 6 лет назад
I've heard the opposite and you should slow down your key repeat to force you to use the more efficient commands.
@ianpan0102
@ianpan0102 5 лет назад
I've been using Vim quite extensively and was more productive than ever before. However, after I switched to Emacs, there's no turning back. Board the flagship of holy Emacs, my friend! (If you miss the Vim shortcuts, just turn on Evil Mode in Emacs. You can still eenjoy the world that Emacs gives you) .
@totheknee
@totheknee 4 года назад
Actually vim can't: 1) insert one char from normal mode. You can `r` to replace under the cursor, but not add. Also `i` to insert, but then you have to . `c1l` leaves you in insert mode. Maybe you can `:s/^/`, but seriously, 7 keystrokes plus two ``s and a `^`? But yeah, you can use a super kludgy keymap of `nnoremap s ir`. 2) With a terminal, you can't map `[A-Z]`, i.e., control key plus _capital_ A-Z. Nor can you map `,` nor `.` (comma/period) And this sometimes doesn't even work with GUI vim variations (although there are workarounds).
@ah-64apache84
@ah-64apache84 3 года назад
cheat sheet link: www.viemu.com/a_vi_vim_graphical_cheat_sheet_tutorial.html