diff options
Diffstat (limited to 'vimrc-common')
| -rw-r--r-- | vimrc-common | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vimrc-common b/vimrc-common index b8900c4..4b00369 100644 --- a/vimrc-common +++ b/vimrc-common | |||
| @@ -333,6 +333,12 @@ augroup KEYBOARD_MAPPING | |||
| 333 | nnoremap <s-up> vk | 333 | nnoremap <s-up> vk |
| 334 | vnoremap <s-up> k | 334 | vnoremap <s-up> k |
| 335 | 335 | ||
| 336 | " if the wildmenu is configured to to display suggestions vertically, then | ||
| 337 | " reconfigure the cursor keys to work in that direction | ||
| 338 | if &wildoptions =~# 'pum' | ||
| 339 | cnoremap <expr> <up> pumvisible() ? "<C-p>" : "\<up>" | ||
| 340 | cnoremap <expr> <down> pumvisible() ? "<C-n>" : "\<down>" | ||
| 341 | endif | ||
| 336 | 342 | ||
| 337 | 343 | ||
| 338 | " INSERT_MODE_MAPPINGS: | 344 | " INSERT_MODE_MAPPINGS: |
| @@ -344,6 +350,11 @@ augroup KEYBOARD_MAPPING | |||
| 344 | if has('nvim') " only neovim... | 350 | if has('nvim') " only neovim... |
| 345 | " shortcut \t opens a terminal in a horizontal split | 351 | " shortcut \t opens a terminal in a horizontal split |
| 346 | nnoremap <leader>t :new +terminal<CR> | 352 | nnoremap <leader>t :new +terminal<CR> |
| 353 | else | ||
| 354 | " allow vim to yank in wayland | ||
| 355 | if $XDG_SESSION_TYPE ==# 'wayland' | ||
| 356 | xnoremap "+y y:call system("wl-copy", @")<cr> | ||
| 357 | endif | ||
| 347 | endif | 358 | endif |
| 348 | augroup END | 359 | augroup END |
| 349 | 360 | ||
