What's the deal with Ctrl+Left and Ctrl+Right?
niladicpodcast.com
niladicpodcast.com
As the author points out, the exact cursor position in some apps is different on Windows, but he shortcut is always CTRL+{direction}
EDIT: Unless you do this: https://apple.stackexchange.com/questions/136928/using-alt-c...
EDIT: To elaborate a little… Terminals pre-date arrow keys, which is partly why there are lots of default “movement” keybindings that don’t use them (ctrl-a, ctrl-e, ctrl-b, ctrl-f, ctrl-n, ctrl-p, etc.).
Today, although the situation hasn't improved if you press Home or End, at least first-party Apple keyboards are essentially always laptop keyboards (even when sold for use on desktop computers). So you don't even have a Home or End key to press. I suppose that's an improvement.
In other words, the default algorithm used by a all-purpose editor (Notepad) is "don't offend too many users too much", not "we know that users are using this editing control for code, hence movement to underscores".
I use ctrl+left/right all the time (well actually ctrl+f/b because I use emacs), and I can't actually tell you where the cursor would stop, but my fingers do... It's become muscle memory. It would take longer for my fingers to understand contextual behavior.
Yeah, I want distinctly none of that.
(Also the reason I prefer Vim/Emacs over language-specific IDEs. I like to use the same editor tools for all sorts of writing – and good tools are general enough to work that way.)
Edit: He calls out IDEs as a place you can't use Vim. But I think most widely used IDEs tend to have Vim plugins...
1. The full command set, like :set paste and :set foldmethod=indent; and 2. Some basic plugins, like EasyMotion and surround.vim.
Not even evil-mode gets this completely right, but it's close enough to be worth it.
Uh, no. I'm pretty much always in Emacs. Except when I'm posting a comment on HN :)
https://www.emacswiki.org/emacs/Edit_with_Emacs
or
https://addons.mozilla.org/en-US/firefox/addon/its-all-text/
https://addons.mozilla.org/nl/firefox/addon/firemacs/
Because even for things that are not text, there is no reason not to stick to Emacs.
M-x eshell
M-x term
It's not that I don't sympathize--I have a personal laptop on Ubuntu, work computer on OSX from which I sometimes VN into a machine with CentOS, and using spacemacs means I often context switch between a set of shortcuts which takes from both emacs and vim. However, I feel that, of the things which need to be standardized across platforms, the CTRL+* shortcuts really is low priority.
For example, in Visual Studio ctrl-x with nothing selected will cut the whole line, but very few other programs support that. As well as using to move code around, I use it to delete lines (ctrl-l is better supported, but you can still do ctrl-x with your hand on the mouse). So when it doesn't work in Notepad++, it's quite annoying as it breaks your flow. I'm using a plugin to simulate it, but it's not quite right still.
One of the another thing that can catch you out is that the various MS code editors behave differently depending on the language you're using, SQL Management Studio will treat anything wrapped with []s as a single string, but while in text strings of SQL in Visual Studio it will stop on each bracket. It end up being quite annoying you can't mark a string in VS as a sql string when you want to make a small tweak or add an extra column.
It's muscle memory, and so it's going to annoy you when it doesn't work, it makes you feel clumsy in the new environment.
I filed this issue: https://github.com/Microsoft/vscode/issues/32246
Rather than wait, I ended up creating this extension last weekend to do it the way I wanted it to: https://marketplace.visualstudio.com/items?itemName=stringha...
Too bad it isn't a standard thing. I liked it a lot.