3 ms·
I promise I’m not trying to start a flame war, but as an Emacs user this seems… commonplace. Are splits not a commonly used feature? I’ve used the equivalent fo
by ashton314 7y ago
I promise I’m not trying to start a flame war, but as an Emacs user this seems… commonplace. Are splits not a commonly used feature? I’ve used the equivalent for as long as I can remember in Emacs, so it doesn’t feel particularly esoteric. Or is it that this is just a commonly not fully-understood/utilized feature of Vim? If that’s the case, that is totally understandable. That’s basically my life with Emacs. :)
I’m curious: what features of Vim do you feel are essential to become a power user?
- jdonaldson 7y agoVim is great but ancient. It was designed on/for systems that just don't exist any more. E.g. looking at the popular keyboard of the time hints at why "escape" was such a critical key : https://i.imgur.com/Hn174TJ.jpg https://i.imgur.com/Hn174TJ.jpg In order to get the most from Vim, you have to take a huge step back and look at your screen configuration and usage patterns. * The escape key is too difficult to reach on modern keyboards, use ctrl-c * Code file sizes are becoming really large. Use search rather than directional navigation/paging to save some time * The search key is too difficult to hit, remap to space * Most people are on a wide screen. So, try to make vertical splits as easy as possible to do. * Folder based search is now very fast and efficient. Use a modified search command (<leader>space) and map it to Rg/Ack There's some good work recently done for vim with language servers. I'm counting on redoing the key mapping once more. IMHO the poor defaults of vim isn't a bug of vim, it's a feature.
- apocolyps6 7y agoI'd say I'm an intermediate+ user of VIM. Its my main text editor and has been for 6 years or so. I use splits extensively, but not as described here. I basically just do :sp or :vsp to divide the current spit in half vertically or horizontally, and then if I care (rarely) I use C-W H/J/K/L to send one of the windows to the appropriate part of the screen. I also switch windows with arrow keys (mapped to fn+HJKL) and use tabs for "workspaces". I also have a custom bit of vimscript that lets me select and swap splits with <leader>w (I do this more than "moving" splits).
- OscarDC 7y ago__EDIT__: "tabs" not "windows" sorry. I mixed up I use vim as my main IDE and I consider splits to be essential in vim too. About that, I understand the point other people make about using tmux or a tiling wm instead, but this generally means that the register are not shared between those vim instances, which is a huge penalty for me. "Essential power user features" could be different things for me. For now, I would say using the multiple registers, macros, navigating the undo tree and marks to be both essential and advanced (they are not hard to understand, but you have to remember a lot of things before you dive into all that). But with vim, you often discover new features after years of usage which become essential when you integrate it in your workflow and muscle memories. For example, I never really grasped the "tabs" concepts and its use cases for now, but I wouldn't be surprised if I make heavy usage of them in the future. I would thus guess that other vim users might have very different answers.