vim: yank into middle click clipboard

Signed-off-by: Naman Sood <mail@nsood.in>
This commit is contained in:
Naman Sood 2022-09-14 18:47:24 -04:00
parent 6c0cb97d19
commit c6b96b971d
2 changed files with 6 additions and 0 deletions

2
vimrc
View file

@ -1,3 +1,5 @@
set number
set autoindent
set tabstop=4
" makes it so that yanks/deletes go into middle click keyboard
set clipboard=unnamed

4
zshrc
View file

@ -118,3 +118,7 @@ exp() {
cdmk() {
mkdir -p "$@" && cd "$@"
}
if which gvim &>/dev/null && ! which vim echo &>/dev/null; then
alias vim='gvim -v'
fi