My vim configuration
git clone https://github.com/m-col/vim-misc
Files | Refs | Readme

Commit 081aba8c9577caa728520ea4674c84019b35044f
Parent: de9b57b36e36d0280406e953eca945bebb523b56
Author: mcol <mcol@posteo.net>
Date: 2019-02-23 00:22:44 +0000
Committer: mcol <mcol@posteo.net>
Committed: 2019-02-23 00:22:44 +0000

added copy mode stuff to tmux conf; clarified installation of vim misc

tmux.conf Modified

@@ -9,7 +9,7 @@
 bind r source-file ~/.tmux.conf
 #bind-key C-a last-window
 bind-key | split-window -hb \; run-shell "~/.vim/bundle/vim-misc/bsptm"
-bind-key -n C-d kill-pane \; run-shell "~/.vim/bundle/vim-misc/bsptm"
+#bind-key -n C-d kill-pane \; run-shell "~/.vim/bundle/vim-misc/bsptm"
 bind C-l send-keys 'C-l'
 
 # general settings
@@ -19,6 +19,14 @@
 set -s escape-time 0
 set -g base-index 1
 
+# copy mode
+# enter it with pre-[
+# select region with space
+# copy with enter
+# or quit with q
+# paste it with pre=]
+set-window-option -g mode-keys vi
+
 # Vim bindings in copy-mode
 #bind-key -T copy-mode-vi y send-keys -X copy-pipe-and-cancel "xclip -i -sel clip > /dev/null"
 #bind-key p run "xclip -o -sel clip | tmux load-buffer - ; tmux paste-buffer"

readme.md Modified

@@ -1 +1,5 @@
 install beside [vundle](https://github.com/VundleVim/Vundle.vim)
+
+    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
+    git clone https://github.com/mcolligan/vim-misc.git ~/.vim/bundle/vim-misc
+    ~/.vim/bundle/vim-misc/install