3 ms·
> I don't see any criticizing, just "it doesn't work as well for me," which I think is entirely fair. I had no problem with his tone. But he's very much makin
by jonahx 9y ago
> I don't see any criticizing, just "it doesn't work as well for me," which I think is entirely fair.
I had no problem with his tone. But he's very much making a statement about a technical problem he has with vim, and which isn't well-founded.
> In particular, it seems like 'jimmaswell prefers an editor where you think of blocks of code as "I can see this on the screen" than "up to the end of the current curly brace," which seems like a legitimate difference in mental processing styles, not a consequence of lack of learning.
There is nothing about vim that impedes a visual mental processing style. I constantly look at a place I want to select and then jump there using any number of methods -- the easymotion plugin is ideal for this.
> (Also, I think { and } don't work if you're using Python, whereas "I as a human can understand the structure of this code and identify the beginning and end of functions, which I already do because I'm literally writing code in this language" is portable between languages.)
Again, even vanilla vim performs better here than a mouse. But you should really have custom text objects installed for any language you work in regularly. Here's one for python: https://github.com/bps/vim-textobj-python https://github.com/bps/vim-textobj-python
- ethagnawl 9y agoThanks for plugging easymotion. I regularly use a similar feature provided by the VimFx Firefox add-on, but never bothered to look for a way to move similarly inside Vim itself.
- lenkite 9y agoI find vim sneak better than easy motion: https://github.com/justinmk/vim-sneak https://github.com/justinmk/vim-sneak This is so popular, it made it to emacs too: https://github.com/hlissner/evil-snipe https://github.com/hlissner/evil-snipe I love the 2 char lookahead/lookbehind. It is so fast and useful.
- module0000 9y agoI had those issues very early on. Forcing myself to do everything in VIM solved it. It's just muscle memory that people are lacking, once you don't have to think about how to indent/move/select/yank and it is an unconscious action: all these difficulties cease to exist.