Browse Source

enable pasting in vim under wayland

Bananicorn 1 year ago
parent
commit
a3895bcc31
4 changed files with 20 additions and 4 deletions
  1. 5 0
      .vimrc
  2. 4 0
      devuan_setup/.bashrc
  3. 6 4
      devuan_setup/desktop/applications.txt
  4. 5 0
      devuan_setup/setup_system.sh

+ 5 - 0
.vimrc

@@ -1,6 +1,11 @@
 "not VI compatible
 "not VI compatible
 set nocompatible
 set nocompatible
 
 
+"Workaround for pasting under wayland
+xnoremap "+y y:call system("wl-copy", @")<cr>
+nnoremap "+p :let @"=substitute(system("wl-paste --no-newline"), '<C-v><C-m>', '', 'g')<cr>p
+nnoremap "*p :let @"=substitute(system("wl-paste --no-newline --primary"), '<C-v><C-m>', '', 'g')<cr>p
+
 "set the path where the plugins live
 "set the path where the plugins live
 "in this case in the folder .vim in home
 "in this case in the folder .vim in home
 set packpath+=~/.vim
 set packpath+=~/.vim

+ 4 - 0
devuan_setup/.bashrc

@@ -58,3 +58,7 @@ bind '"\e[A": history-search-backward'
 bind '"\e[B": history-search-forward'
 bind '"\e[B": history-search-forward'
 
 
 set -o vi
 set -o vi
+export PICO_SDK_PATH=~/picosystem/pico/pico-sdk
+export PICO_EXAMPLES_PATH=~/picosystem/pico/pico-examples
+export PICO_EXTRAS_PATH=~/picosystem/pico/pico-extras
+export PICO_PLAYGROUND_PATH=~/picosystem/pico/pico-playground

+ 6 - 4
devuan_setup/desktop/applications.txt

@@ -1,8 +1,10 @@
-firefox-esr
+blender
+calibre
 chromium
 chromium
 connman-gtk --no-icon
 connman-gtk --no-icon
+filezilla
+firefox-esr
+inkscape
 keepassxc
 keepassxc
 thunar
 thunar
-inkscape
-blender
-calibre
+krita

+ 5 - 0
devuan_setup/setup_system.sh

@@ -24,6 +24,9 @@ ln -sn ~/dotfiles/devuan_setup/config/user-dirs.dirs ~/.config/
 ln -sn ~/dotfiles/devuan_setup/.bashrc ~/.bashrc
 ln -sn ~/dotfiles/devuan_setup/.bashrc ~/.bashrc
 ln -sn ~/dotfiles/devuan_setup/scripts ~/scripts
 ln -sn ~/dotfiles/devuan_setup/scripts ~/scripts
 
 
+#so pasting works in the vim in the terminal
+sudo apt install -y wl-clipboard
+
 #install terminal emulator
 #install terminal emulator
 sudo apt install -y foot
 sudo apt install -y foot
 ln -sn ~/dotfiles/devuan_setup/config/foot ~/.config/foot
 ln -sn ~/dotfiles/devuan_setup/config/foot ~/.config/foot
@@ -72,7 +75,9 @@ sudo apt install -y firefox-esr
 sudo apt install -y inkscape
 sudo apt install -y inkscape
 sudo apt install -y keepassxc
 sudo apt install -y keepassxc
 sudo apt install -y calibre
 sudo apt install -y calibre
+sudo apt install -y filezilla
 sudo apt install -y thunar
 sudo apt install -y thunar
+sudo apt install -y krita
 sudo apt remove -y thunar-volman
 sudo apt remove -y thunar-volman
 
 
 #screenshots
 #screenshots