diff options
| author | Max Christian Pohle | 2019-10-07 23:55:10 +0200 |
|---|---|---|
| committer | Max Christian Pohle | 2019-10-07 23:55:10 +0200 |
| commit | bd4fa1331b6543ddee67324ade50419f2c036105 (patch) | |
| tree | e8c8351f60a57d277cd85b633c0eb204adcc4d97 /vimrc-common | |
| parent | 6a1f77b32224bb86c50c687ea1f8f70cf4b440a0 (diff) | |
| download | vim-bd4fa1331b6543ddee67324ade50419f2c036105.tar.bz2 vim-bd4fa1331b6543ddee67324ade50419f2c036105.zip | |
further C&P and keyboard arrow fixes
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 | ||
