Commit 1e47d4a

mo khan <mo@mokhan.ca>
2021-08-23 16:53:12
use system clipboard by default
1 parent 58727ce
Changed files (1)
vimrc
@@ -8,7 +8,6 @@ set autoread
 set autowrite
 set backspace=indent,eol,start
 set backupdir=~/tmp,/var/tmp,/tmp/
-set clipboard^=unnamed,unnamedplus
 set cmdheight=1
 set completeopt=menu,preview
 set cursorline
@@ -47,7 +46,6 @@ set showcmd
 set showmatch
 set showmode
 set showtabline=2
-set signcolumn=number
 set smartcase
 set softtabstop=2
 set splitbelow
@@ -70,14 +68,19 @@ set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/*
 set wildignore+=*.swp,*~,._*
 set wildignore+=*/tmp/*,*.so,*/coverage/*
 
+if has('nvim')
+  set clipboard+=unnamedplus " works in nvim
+else
+  " set clipboard^=unnamed,unnamedplus " I don't know what this
+  set clipboard=unnamedplus
+endif
+
 if executable('ag')
   set grepprg=ag\ --vimgrep\ $*
 endif
 
-if has("termguicolors")
-  let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
-  let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
-  set termguicolors
+if has('signcolumn')
+  set signcolumn=number
 endif
 
 if has("statusline") && !&cp
@@ -96,6 +99,12 @@ if has("statusline") && !&cp
   set statusline+=%*
 endif
 
+if has("termguicolors")
+  let &t_8f = "\<Esc>[38:2:%lu:%lu:%lum"
+  let &t_8b = "\<Esc>[48:2:%lu:%lu:%lum"
+  set termguicolors
+endif
+
 runtime macros/matchit.vim
 color happy_hacking
 filetype plugin indent on