4 ms·
How do you navigate text in VSCode without arrow keys (and equivalents such as Pg Up/Dn, Home, End) I’m not sure about the author, but I consider emacs essenti
by addicted 6y ago
How do you navigate text in VSCode without arrow keys (and equivalents such as Pg Up/Dn, Home, End)
I’m not sure about the author, but I consider emacs essentially a modal editor. The vast majority of actions are preceded by a combination of modifier key presses, which is essentially modal, except you can’t (or can you?) keep it sticky.
So, for example, next line in Emacs is Ctrl+N whereas in Vim is Esc+J. The only difference in VIM is that you don’t need to hit ESC the next time want to go to the next line whereas Emacs reverts you to “insert” mode requiring you to press Ctrl again. But in both you can type out a number to allow you to jump 5 lines instead of just 1 with each key press.
Of course, those are only the in built modes. In many ways, emacs is even more modal than Vim, since there are so many packages that shift you into different custom modes With different behavior (e.g. org mode, magit, etc).
- OrderlyTiamat 6y agoThat's not modal though. You could make it modal/sticky with e.g. god-mode, evil-mode, or others, but essentially its a single shortcut (yes, it uses two keys instead of one, but that doesn't make it modal: try pressing Ctrl and afterwards pressing n like with esc h for vim, I don't think it'll work...) Org-mode and magit are modes in the sense that they are different environments, not input modes. You won't have a good time trying to update your calendar using magit, and reverting the latest commit is going to be a challenge from within org-mode. These are different tools. I'd say once again, emacs can be as modal as you like, more or less exactly like vim, or it can be non-modal.
- bzg 6y agoWell, of course you can revert a commit from org-mode. Simply create a bash source code block that goes in the right directory and does the git revert. \o/
- deleted 6y ago[deleted]
- kstrauser 6y agoAll of the most common Emacs movement keys work in VS Code (^n, ^p, ^a, ^e, etc.). I see what you're saying about Emacs's modes, but understand that that's a different meaning of "modes" than people common use when talking about editors. By the definition you gave, I couldn't really think of _any_ editor that's not modal in some way.