9 ms·
Afaik what the world really needs is a vim like editor with sane defaults, partly overhauled shortcuts that are closer to other tools and some common scenarios
by atoav 6y ago
Afaik what the world really needs is a vim like editor with sane defaults, partly overhauled shortcuts that are closer to other tools and some common scenarios solved in less steps (e.g. exiting the editor, multicursor stuff, ...)
- Jtsummers 6y agoWhat would you do to shorten exiting vim? <esc> :wq Is the longest it's ever been for me and :q Is the norm if I'm in visual mode and haven't edited the buffer.
- hojjat12000 6y agoI think most people don't know that instead of :wq or :q! they can just ZZ and ZQ
- cassepipe 6y agoor just :x
- ckw 6y agoSpace is my leader key, save is mapped to <leader>w, exit is mapped to <leader>q, and <esc> is mapped to jk. So nominally exiting from insert mode in an unsaved buffer (jk<space>w<space>q) is the same number of key presses as <esc><shift>;wq<return>, but in practice, in my opinion, jk is superior to <esc>, <space>w is superior to <shift>;w<return>, <space>q is superior to <shift>;q<return>, and <space>w<space>q is superior to <shift>;wq<return>.
- ogre_codes 6y agoWhile I agree with most of this... Who has trouble with ":x"? It's no more keystrokes than any other editor uses. I guess if you are in insert mode it's `esc :x`. I suppose you could bind a single keystroke in normal mode, but it's not that big a deal. Multicursor would be fantastic. Macro goes pretty far to supporting what you do with multi cursor but falls a little short.
- anand-bala 6y agoAs an ex-Sublime and ex-VSCode user, I realized that macros and Visual Block mode covers all my use cases for multicursor functionality.
- HKH2 6y agoKakoune is aimed at multicursor stuff and has relatively sane defaults. It shows help dialogues when pressing key combos too.
- rapind 6y agoGenuinely curious why multicursor is a big deal?
- joelellis 6y agoMulti-cursor editing is the fastest way to accurately modify large amounts of text, especially repetitive text. It's well worth learning for your respective editor. Most other editing methods don't come close, especially in terms of speed.
- rapind 6y agoBut it’s still just search and replace right, like renaming a variable or function, or am I missing something?
- sullyj3 6y agoThe difference is the interactivity and instantaneous feedback. I don't want to have to blindly write a regex substitution when I could instead be seeing what is happening at each step, right in front of me.
- sagarm 6y agoNeovim gives you a preview of the result of your regex replacement, and with the ability to reference capture groups it's a pretty powerful.
- sullyj3 6y agoYeah, I'm a neovim user, and I enjoy that feature. There are just times when multiple cursors would be ever so slightly more ergonomic.
- michaelmrose 6y agoy and p are better suited to vim usage than control c v I'm not sure what shortcuts you want similar to other tools. Leaving vim is easy :x if you want to save your work :q if you don't need to :q! if you want to discard all changes to a file These are 3 different operations with the 2 common cases taking 2 characters. Ultimately if you just wanted different defaults you could trivially provide it as a plugin to vim.
- timothylaurent 6y agoI've been using https://spacevim.org/ https://spacevim.org/ for this purpose for some time, though Vim per-se isn't my daily editor -- I use PyCharm with VIM emulation. It lazy loads everything and supports most languages, has help throughout, and a responsive community for any issue you may encounter.