A Good Vimrc
141–150 of 178 posts
Re: A Good Vimrc
#142Rebinding jk to escape because escape is too far away seemed like a fairly ugly hack to me, especially because you can't type it anymore without waiting. Why not simply rebind caps lock to escape? Caps lock is used awfully little, considering how prominent its position on the keyboard is. On Linux, you can rebind it by adding setxkbmap -option caps:escape to your .profile. If instead of an additional escape you prefe…
I use jk, and agree that binding escape to something easy is the most impactful change on my vim workflow. I encourage everyone to try it. The amount of times in the last year where i've had to actually type the string "jk" is exactly...one? I think, though perhaps I was imagining even that one. I suppose it really doesn't matter what you bind it to as long as you can execute the escape whilst keeping ALL of your fin…
Re: A Good Vimrc
#143I don't understand why you'd want to map leader to anything but space.
Re: A Good Vimrc
#144Rebinding jk to escape because escape is too far away seemed like a fairly ugly hack to me, especially because you can't type it anymore without waiting. Why not simply rebind caps lock to escape? Caps lock is used awfully little, considering how prominent its position on the keyboard is. On Linux, you can rebind it by adding setxkbmap -option caps:escape to your .profile. If instead of an additional escape you prefe…
Re: A Good Vimrc
#145I'm seriously interested in such an article for Emacs. Anyone?
Check out spacemacs
Re: A Good Vimrc
#146Rebinding jk to escape because escape is too far away seemed like a fairly ugly hack to me, especially because you can't type it anymore without waiting. Why not simply rebind caps lock to escape? Caps lock is used awfully little, considering how prominent its position on the keyboard is. On Linux, you can rebind it by adding setxkbmap -option caps:escape to your .profile. If instead of an additional escape you prefe…
Re: A Good Vimrc
#147I don't use vim as my go to editor so I may be asking a silly question; does it just use idiotic defaults or something? I've only met a couple 'vim users' who could just hop onto someone else's vim setup and be productive, and I've never met a single vim user who could use someone else's setup without making comments about everything being different. I guess the question is do people modify vim cause they can or caus…
Yes, the vim defaults suck. If you're building a new vimrc or want a common ground for pairing, I would recommend checking out [vim-sensible]( https://github.com/tpope/vim-sensible ) by tpope. It's a vim plugin that provides a set of sensible default options.
Re: A Good Vimrc
#148Rebinding jk to escape because escape is too far away seemed like a fairly ugly hack to me, especially because you can't type it anymore without waiting. Why not simply rebind caps lock to escape? Caps lock is used awfully little, considering how prominent its position on the keyboard is. On Linux, you can rebind it by adding setxkbmap -option caps:escape to your .profile. If instead of an additional escape you prefe…
I'm currently working on a vimrc that caters to people like me, those who only use CapsLock to capitalize, and avoid all chording. When I'm done, maybe I can map Shift to Esc.
Re: A Good Vimrc
#149This is what I have:
https://gist.github.com/halayli/ef3dd268986914ed77d5
At the very least, you need vim-session if you work on multiple projects (or branches)
vim-airline is a nice to have
Ag is a must have. it allows you to search files and preview the results directly.
I've also written a small function SwitchHeaderSource to switch between .c/cpp files and their headers. ,s is the shortcut.
Re: A Good Vimrc
#150Earlier quoted context omitted.
Hi! Author here. Fair points. I'm gonna start out on the defensive: I didn't post the article, which kinda stinks because if I knew it was going to get such attention I would have updated it to my current setup. Anyways as the 1.5 year old article states: This article will almost certainly fall out of date with my vimrc in the very near future I don't do jk escape anymore. I have since abandoned custom escapes becaus…
I once told my wife an amusing story I'd read in Australian Personal Computer where a computer technician was told by a secretary that she was great with computers, said technician was very happy and joked that he was glad as the last person he had to help thought that the way to input capital letters was to press the caps lock key, the capital letter and then press the caps lock key again... To which the secretary a…