3 ms·
Admittedly I haven't been using vim more than a few months, but I wonder why all the move commands are based on text structures, such as lines, spaces etc. Wou
by thomasahle 12y ago
Admittedly I haven't been using vim more than a few months, but I wonder why all the move commands are based on text structures, such as lines, spaces etc.
Wouldn't it be more useful to have commands for going to expressions, blocks, scopes and other code level structures?
I see vim people suggesting always leaving blank lines around functions, so you may use paragraph shortcuts to move them around. Why?
- mattmanser 12y agoBecause then it has to know what all those things are, and to know it has to parse and even compile the code. Basically a whole load of effort which isn't transferrable between languages.
- thomasahle 12y agoSurely the implementation effort can't be the reason. For an editor so focused on efficiency..
- Anthony-G 12y agoSome users also use Vim for editing plain English. I compose most of my emails in Vim and am currently (re-)acquainting myself with Mutt to avoid switching back and forth between GUI windows -- though maybe I just have a masochistic streak.
- thomasahle 12y agoThat makes somewhat sense, though it does feel like coding takes up 95% of vim usage demonstrated in blog posts.