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.
9
votes
Accepted
Neovim: Select an autocomplete option with <tab> instead of <return>
You need this map:
inoremap <expr> <TAB> pumvisible() ? "<C-y>" : "<TAB>"
If PUM (complete menu) is visible, then execute <C-y> (which selects an item), otherwise, do a normal tab.
3
votes
1
answer
175
views
Setting to prevent <c-h> to erase text
I have a map which allows me to navigate with hjkl in insert mode:
" In insert or command mode, move normally by using Ctrl
inoremap <C-h> <Left>
inoremap <C-j> <Down>
inoremap <C-k> <Up>
inoremap <C …