Ben Orenstein - Write code faster: expert-level vim (Railsberry 2012)

  Рет қаралды 244,915

applicake

12 жыл бұрын

European Rails Conference Railsberry 2012, Day 1

Пікірлер: 107
@ppg5
@ppg5 9 жыл бұрын
Why didn't you record the screen so we can follow along?
@pablopunk
@pablopunk 7 жыл бұрын
Because he is lazy, didn't you hear that?
@leonk6950
@leonk6950 5 жыл бұрын
Tip for all of you: use autohotkey or something similar to map TAB+[hjkl] to your arrows. This way you can use hjkl everywhere. Also map tab+X to delete ( vim like ) and what I did is tab+n to backspace. The long-reaching pinky movement is deadly to your fingers.
@user-je8he7ox6p
@user-je8he7ox6p Жыл бұрын
In a non-Vim environment, I am forced to use the arrow keys. Your advice helped me solve this problem. Thanks a lot!
@midevil656
@midevil656 11 жыл бұрын
Love this. Had no idea what leaders were before this, and also got a few good plugins out of this too.
@WayneWerner
@WayneWerner 9 жыл бұрын
There's a guy who asks a question about running tests async in Vim. If you have Tmux available you can use tmux send-keys to send the run commands to a tmux pane which *does* run it async. It's pretty fantastic.
@qiuxiaomu6746
@qiuxiaomu6746 8 жыл бұрын
This is really expert level... like not just vim, expert level eyesight and all other stuff...
@hulavux8145
@hulavux8145 3 жыл бұрын
Ikr
@hydrox24
@hydrox24 12 жыл бұрын
Excellent video, listened to the whole thing and there are some great tips in there.
@Fachher
@Fachher 9 жыл бұрын
Worst camera guy I've every seen. Showing the guy not the screen.
@Yegorvs
@Yegorvs 6 жыл бұрын
Oh, man…I just got crazy because of it.
@peterfarr9591
@peterfarr9591 5 жыл бұрын
Not camera man - definitely the director - but yes
@MrRosamunda
@MrRosamunda 5 жыл бұрын
there are some hidden gems in this talk
@aidanbrumsickle
@aidanbrumsickle 11 жыл бұрын
I like to use Control-[ instead of the Escape key. It's less strain on my left pinky.
@ianpan0102
@ianpan0102 6 жыл бұрын
When he did holding J and holding K how is it so smooth?
@dejotable
@dejotable 7 жыл бұрын
quit watching after 10 min and not learning a single new thing. i already knew how to open help :-)
@MistaSmith
@MistaSmith 9 жыл бұрын
The thing about hjkl is that you often don't use them anymore once you get intermediate. But I don't think you can get there if you never started using hjkl at first.
@qiuxiaomu6746
@qiuxiaomu6746 3 жыл бұрын
you still do to some extent, when you go 100h where it’s actually 101h you got to make that micro h move; even if you jump straight to your point in mind you might do some mini adjustment; hjkl is not basic that’s essential IMO.
@metal571
@metal571 11 жыл бұрын
pretty great stuff
@hangugeohaksaeng
@hangugeohaksaeng 7 жыл бұрын
Vimrc to remote machine with high security: use xdotool (on linux) to "type" vimrc into ssh vim session. This is very quick and can be scripted and executed with a hotkey from you desktop environment/window manager.
@lostingamma
@lostingamma 11 жыл бұрын
I can't see the screen!
@SamuelGoodwin
@SamuelGoodwin 10 жыл бұрын
For the record, you can rebind all of Terminal's keyboard shortcuts. You can do this to any app.
@holalluis
@holalluis 11 жыл бұрын
I think that the best way to navigate through files is the command :e. That opens the current folder and lets you navigate files without needing plugins
@MrPuppyDrool
@MrPuppyDrool 11 жыл бұрын
Why aren't you focusing on the projection? :(
@IgnacioChavez
@IgnacioChavez 10 жыл бұрын
whats up with the camera man, 19:00 I want to see the screen not the guy
@mgrycz
@mgrycz 11 жыл бұрын
Great stuff.
@toxic_narcissist
@toxic_narcissist 3 жыл бұрын
You can actually remap Caps Lock to run as Esc when pressed by itself and as Ctrl when pressed with another button. At least on Ubuntu it's easy
@pedalhardPDX
@pedalhardPDX 10 жыл бұрын
Ben is a good presenter. That said a video about commands should show the commands not the presenter -1 for the videographer. VIM is the best! ~mc
@wojtasskorcz
@wojtasskorcz 11 жыл бұрын
As long as they're right-handed, I think most people operate the mouse with their right hand and the WASD (or HJKL as you suggest) keys with their left hand. But if you're left handed, it may work (with the mouse on the left side of your keyboard).
@AndyThomasStaff
@AndyThomasStaff 10 жыл бұрын
Mappings in your vimrc? Change inside word? Macros? This is a beginner level vim talk. It's also bad practice in vim not to use relativenumber
@humanfactorsio
@humanfactorsio 6 жыл бұрын
Welcome to emacs
@FelipeMendez
@FelipeMendez 11 жыл бұрын
e tells the commands but i cant see what they do whay isnt recorded the screen?
@fernando73820208
@fernando73820208 7 жыл бұрын
hey hi, I'm new to vim, and I try to copy html code into a file using vim. when i do this the tag align in more far out, the first and second row start in the first column the 3rd jumps to column 9, the 4th row starts at column 19 and so on. how can I align all the columns to start at columns 1 without doing it one by one. I only know how to do it one by one, but I waste a lot of time doing this.
@nicolafontana7765
@nicolafontana7765 6 жыл бұрын
`:set paste` before pasting.
@NostraDavid2
@NostraDavid2 Жыл бұрын
Other than ":set paste", there's some weird shit with older versions of Windows' conhost.exe (basically anything older than Windows 11). You can replace it with an OpenConsole.exe for Terminal, as that is just a newer version of conhost, to get it improved.
@michaelmitchell2991
@michaelmitchell2991 10 жыл бұрын
jumped to the comments because I thought presentation (and camera work) overall sucked and other comments same
@patrickdoyle4581
@patrickdoyle4581 6 жыл бұрын
So, expert-level vim means customizing your vimrc to reduce keystrokes? That's disappointing. I'd rather see a talk on how a vim expert can fly with vim out of the box. Like that tip on dumping a macro into a file and editing it -- more of that!
@gargshishir3
@gargshishir3 9 жыл бұрын
guy asking question at 32:20 sounds like Stephen Hawking
@muffat19
@muffat19 6 жыл бұрын
what the fuckkk!!!
@Ateshtesh
@Ateshtesh 6 жыл бұрын
hahahah its true! xDDD
@Kirtaainen
@Kirtaainen 11 жыл бұрын
tut starts at 6:20
@gjermundification
@gjermundification 7 жыл бұрын
12:05 this is the difference between using vim as a text editor, I have repeated this a gazillion times before, vim is a text synthesizer and the arrow keys only work in insert mode. The insert mode is when vim behaves like a text editor, text editors are highly inefficient when it comes to producing text, text editors are the brute force of text production. Normal mode in vim is where you synthesize text; that's where you have the potential of being efficient. If you are to use HJKL play tetris using these keys. Then again there are better ways to navigate text /, *, %, and so on.
@zeuseditor
@zeuseditor 11 жыл бұрын
Brief save file has always been Alt+W so I guess by using the correct editor from the start I've save several million keystrokes onver the years.
@monugupta32
@monugupta32 7 жыл бұрын
Looks like we have a russian army of vim here.. hehe
@MattSeymour
@MattSeymour 11 жыл бұрын
The discount code is RailsberryVIM2012 but shhh don't share it with everyone
@nXqd
@nXqd 10 жыл бұрын
hmm, is that a go pro camera on the table ?
@Thanaz483
@Thanaz483 11 жыл бұрын
We can now run tests asynchronously too! Check out github.com/tpope/vim-dispatch.
@JackVo
@JackVo 11 жыл бұрын
I am a master of vim.
@wojtasskorcz
@wojtasskorcz 11 жыл бұрын
Perhaps, but there's a problem if you ssh to many different terminals, because you'd have to map your own key settings in each of them. But you're right, jkl; seems more sane to me, too.
@branquitodemunze
@branquitodemunze 7 жыл бұрын
Expert level? Come on dude, those are basics..
@wojtasskorcz
@wojtasskorcz 11 жыл бұрын
No use, because in FPS you press the keys with your left hand, and in vim you use those keys with your right hand.
@zzasdfwas
@zzasdfwas 11 жыл бұрын
running vim over a slow terminal taught me not to hold down directions
@mradnanchowdhury
@mradnanchowdhury 11 жыл бұрын
vim-4-life down with emacs
@sativaindica4841
@sativaindica4841 11 жыл бұрын
na i map ,, to save and jj to mimic the esc key
@421sap
@421sap 5 ай бұрын
God bless you, Ben Orenstein in Jesus' Name Amen ✝️
@nXqd
@nXqd 10 жыл бұрын
28:20 if you are looking for a script to run the test async, check the plugin Dispatch from Timpope github.com/tpope/vim-dispatch
@Duffman0
@Duffman0 11 жыл бұрын
How the hell do you aim?
@ttssbb99
@ttssbb99 12 жыл бұрын
ctrlp.vim is like command t but way better. Written in pure vimscript so it actually works.
@BonBonShrimp
@BonBonShrimp 3 жыл бұрын
Not disclosing vimrc? Lol
@OmriHarShemesh
@OmriHarShemesh 11 жыл бұрын
One of the most useful vim mappings I like to use is to map semi-colon to colon. Saves millions of shift presses :-) code: nnoremap ; :
@ChrisCox-wv7oo
@ChrisCox-wv7oo Жыл бұрын
This overwrites the default "Repeat last f, F, t, T" behavior of the semicolon. Just fyi to anyone following this.
@christofferklang
@christofferklang 12 жыл бұрын
I promise not to share the coupon code ;)
@SamuelBarney
@SamuelBarney 6 жыл бұрын
The Work > Tools(vim) ...minimalist ftw
@danielnowak1658
@danielnowak1658 6 жыл бұрын
you have to put speed on 75% then the guy talks normal
@boliussa
@boliussa 11 жыл бұрын
amazing talk.. filming needs to be improved. the guy with the camera needs to be nearer the screen so he can zoom in.
@nixthenamed
@nixthenamed 11 жыл бұрын
Command T is faster, because vimscript is slow.
@MitchelHumpherys
@MitchelHumpherys 11 жыл бұрын
Emacs
@humanfactorsio
@humanfactorsio 6 жыл бұрын
Health argument seems pretty unsubstantiated - all he's arguing for is CUA in emacs - default install since GnuEmacs versions 22.1.1.
@nicolasguyon4943
@nicolasguyon4943 3 жыл бұрын
Do we all agree that this isn't expert-level at all ?
@CgruppoGau
@CgruppoGau 7 жыл бұрын
Funny how people can do that?
@marekstepanek3224
@marekstepanek3224 5 жыл бұрын
unfortunately impossible to follow. Screen out of focus.
@DarrylHebbes
@DarrylHebbes 6 жыл бұрын
Let's see what is being typed on screen by watching a guy in a shirt....
@moofymoo
@moofymoo 10 жыл бұрын
"I'm expert, i'm saving with ctrl+s.." like the rest of the world, lol. I love viming around, but this expert guy has tooo BIG ego.
@ExD3aD
@ExD3aD 7 жыл бұрын
whats wrong with ctrl+s ? show me a better shortcut to save files...
@dreftymac9916
@dreftymac9916 7 жыл бұрын
Nothing wrong with ctrl+s ... but the point is this does little to distinguish vim as a powerful editor versus, say "notepad.exe"
@pspicer777
@pspicer777 5 жыл бұрын
ExD3aD Nothing really wrong, but I prefer to have two key commands be executed on different hands, one key per hand in regular typing position. So map ”,” as in .vimrc, then use w for fast writes (save). Use nnoremap and inoremap with i for normal and insert modes. Very fast ....
@toxic_narcissist
@toxic_narcissist 3 жыл бұрын
what are you talking about. Most vim users I know use :w to save, not ctrl+s actually, it's the first time I hear someone mentioned ctrl+s
@AleksyGrabovski
@AleksyGrabovski 7 жыл бұрын
this guy is taking editing speed too far I think
@onetwothree123-
@onetwothree123- 3 жыл бұрын
Nice joke camera guy
@neuemage
@neuemage 11 жыл бұрын
SUPER UBER MEGA LAME start
@picklerick3136
@picklerick3136 4 жыл бұрын
cannt see a shit
@darthvalar4377
@darthvalar4377 5 жыл бұрын
Yeah ... this time I was sorry I am not allowed to give like 1000 dislikes ... the camera work ruined it all
@krishnaagarwal6339
@krishnaagarwal6339 4 жыл бұрын
The video is good but the video maker have no sense of making videos.
@shawn576
@shawn576 9 жыл бұрын
This guy should buy a computer made in the last 20 years. He'll be amazed how much easier computing is when you have a mouse.
@user-km7yr8wl6q
@user-km7yr8wl6q 9 жыл бұрын
Actually, I used to use a mouse. So very inefficient. Ever since I switched to Vim a few days ago, I almost doubled my productivity.
@MeditationProfondeS
@MeditationProfondeS 10 жыл бұрын
Vim is awesome, ruby is bad. Ruby is emacs and python is vim.
@juniorbrito7495
@juniorbrito7495 10 жыл бұрын
so ruby is good with emacs?
@kiva8986
@kiva8986 6 жыл бұрын
>ruby is better than python
@hobolooter
@hobolooter 10 жыл бұрын
I'm sorry, but this talk just wasn't all that good. Neither the content or the presentation style fit what I would have expected from an expert level VIM talk.
@RyeinGoddard
@RyeinGoddard 11 жыл бұрын
This is one gay looking conference.
@MrDsmover
@MrDsmover 11 жыл бұрын
not useful! I've been using this great editor only for a month. But I already can say that I'm aware of all these points said by him. So it's water shit.
@SatansSpatula
@SatansSpatula 11 жыл бұрын
Stop abusing "anti-pattern". Also, lose the sippy cup. It's distracting as hell hearing you slurping and smacking on that thing.
@MuffinMan0521
@MuffinMan0521 2 жыл бұрын
It's weird to me why anyone would go down the rabbit hole of learning Ruby or Python. .NET for instance has a much larger ecosystem that makes it much more natural to pivot from web to desktop or to service API's. Visual studio or VSCode is far superior to any of the l337 hax0r glorified notepad "IDE's" you guys use.
@NostraDavid2
@NostraDavid2 Жыл бұрын
Python is king in data science. Why? The Pandas lib. Data scientists and analysts are no full software engineers. They just want to use an easy-to-use language, which Python perfectly fits. I use it professionally, and the language and it's libraries are pretty great, but good god is it slooooow. Also, vscode is also a glorified text editor, so not sure why you're using it as a supposedly superior IDE when it's not. Don't get me wrong, I love me some vscode, but there's nothing integrated about it. Also, it's slow as dogshit on my work laptop, which is why I'm switching to Neovim. It should not take 150ms to take a single debug step. That's just too much. Anyway, nothing wrong with using C# and/or vscode, as long as it fits your use case :)
@branquitodemunze
@branquitodemunze 7 жыл бұрын
Expert level? Come on dude, those are basics..
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 16 МЛН
World’s Largest Jello Pool
01:00
Mark Rober
Рет қаралды 91 МЛН
Best KFC Homemade For My Son #cooking #shorts
00:58
BANKII
Рет қаралды 66 МЛН
Jumping off balcony pulls her tooth! 🫣🦷
01:00
Justin Flom
Рет қаралды 16 МЛН