My vim configuration
git clone https://mcol.xyz/code/vim-misc
Log | Files | Refs | README

commit 081aba8c9577caa728520ea4674c84019b35044f
parent de9b57b36e36d0280406e953eca945bebb523b56
Author: mcol <mcol@posteo.net>
Date:   Sat, 23 Feb 2019 00:22:44 +0000

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

Diffstat:
Mreadme.md | 4++++
Mtmux.conf | 10+++++++++-
2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/readme.md b/readme.md @@ -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 diff --git a/tmux.conf b/tmux.conf @@ -9,7 +9,7 @@ bind C-a send-prefix 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 -g history-limit 5000 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"