diff --git a/editors/vim/ui.vim b/editors/vim/ui.vim index 45a0081..58e48ba 100644 --- a/editors/vim/ui.vim +++ b/editors/vim/ui.vim @@ -121,6 +121,9 @@ syntax on " For when other people use my setup nmap \ + " OS X clipboard when yanking/pasting + set clipboard=unnamed + " May only work in iTerm2 and may have other bad effects, " but this shows a block in normal mode, and vertical bar " in insert mode. diff --git a/editors/vim/vimrc b/editors/vim/vimrc index b837c99..7ea4010 100644 --- a/editors/vim/vimrc +++ b/editors/vim/vimrc @@ -21,17 +21,8 @@ set tags=tmp/tags;/,./tmp/tags;/,tags;/,./tags;/ " ,w - write file nnoremap ,w :write -" ,N - toggle line numbers -function! ToggleLineNumbers() - if &number - set nonumber - elseif &relativenumber - set number - else - set relativenumber - endif -endfunction -nnoremap ,N :call ToggleLineNumbers() +set pastetoggle=p +map p :set invpaste paste? " Theme development help nmap :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' @@ -43,12 +34,7 @@ map vv :edit $MYVIMRC map gg :edit $MYGVIMRC map .. :cd ~/.config:enew -set pastetoggle=p -map p :set invpaste paste? - if filereadable(expand('~/.vimrc.local')) source ~/.vimrc.local endif -" OS X clipboard when yanking/pasting -set clipboard=unnamed