Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Doing an action when pressing a key. These are also called key mappings or mappings. For questions about default key bindings, as well as creating or redefining key bindings.
0
votes
1
answer
307
views
Can I make old Vim treat Alt key mappings <M-..> as Esc-prefixed, like Neovim and other CLI ... [duplicate]
Do Vim users use Alt key for mappings? If yes, how exactly?
As it is known, there are 2 common ways of handling Alt key in CLI software: either <Esc>-prefix or 8-bit. It seems like Vim chooses the lat …
0
votes
Accepted
Can I make old Vim treat Alt key mappings <M-..> as Esc-prefixed, like Neovim and other CLI ...
No, I cannot. While in practice it usually works well enough, Vim creator thinks it is a bad idea.
So, either <Esc> prefix should be mapped explicitly
nnoremap <Esc>y :echo 'hello'<cr>
or special :se …
-1
votes
1
answer
77
views
Delete word or whole line part after cursor in colon-command mode with keybinding
I would like my NeoVim to have Emacs-style keybindings in all "direct input" modes, in particular - Alt+d and Ctrl+k for forward word and line part deleting. I've done it for insert mode as
inoremap < …