Author: Kyle Fuller <kyle@fuller.li> 2021-04-03 18:31:33 +0100 +0100
Committer: Kyle Fuller <kyle@fuller.li> 2021-04-03 18:31:33 +0100 +0100
Commit: 302649c61ab6f348e04317a02d45efe11b581142
Parent: ef64009e52dfef5b91f6cbf52432903582dac1f0
fix(vim): remove outdated macOS clipboard handling
diff --git a/.vim/vimrc b/.vim/vimrc
index 1a04e1ec700eaa90562dea8f7d612430885c271e..1290b141e42158ebd358ea67912f7919209b2020 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -122,22 +122,6 @@ autocmd FileType markdown setlocal spell textwidth=79
autocmd FileType apiblueprint setlocal spell textwidth=79
autocmd FileType javascript setlocal shiftwidth=2
-" Copy copy register to OS X general pasteboard
-function! PBCopy()
- call system("pbcopy", getreg(""))
-endfunction
-
-" Paste from OS X general pasteboard to copy register
-function! PBPaste()
- call setreg("", system("pbpaste"))
-endfunction
-
-" By the power of https://github.com/sjl/vitality.vim, copies and pastes
-" to the OS X pasteboard when switching between vim and other windows
-" (even in tmux)
-autocmd FocusLost * :call PBCopy()
-autocmd FocusGained * :call PBPaste()
-
" Yeah... these get typoed
command W w
command Q q