From bd4fa1331b6543ddee67324ade50419f2c036105 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Mon, 7 Oct 2019 23:55:10 +0200 Subject: further C&P and keyboard arrow fixes --- vimrc-common | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'vimrc-common') 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 nnoremap vk vnoremap k + " if the wildmenu is configured to to display suggestions vertically, then + " reconfigure the cursor keys to work in that direction + if &wildoptions =~# 'pum' + cnoremap pumvisible() ? "" : "\" + cnoremap pumvisible() ? "" : "\" + endif " INSERT_MODE_MAPPINGS: @@ -344,6 +350,11 @@ augroup KEYBOARD_MAPPING if has('nvim') " only neovim... " shortcut \t opens a terminal in a horizontal split nnoremap t :new +terminal + else + " allow vim to yank in wayland + if $XDG_SESSION_TYPE ==# 'wayland' + xnoremap "+y y:call system("wl-copy", @") + endif endif augroup END -- cgit v1.2.3