summary refs log tree commit diff
path: root/home/.config/nvim
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-03-30 17:26:55 -0400
committerJune McEnroe <june@causal.agency>2018-03-30 17:26:55 -0400
commit4f8c7d55b516543da97649aba6507b7c595767a4 (patch)
tree55b2b1640e6719a68fef4de356a8e723c8ead9b1 /home/.config/nvim
parentAdd d-_-b crate (diff)
downloadsrc-4f8c7d55b516543da97649aba6507b7c595767a4.tar.gz
src-4f8c7d55b516543da97649aba6507b7c595767a4.zip
Set g:clipboard to pb{copy,paste} always
Previously neovim would use these automatically if it found them, but
now it only checks for them on macOS. pbd continues to work well.
Diffstat (limited to 'home/.config/nvim')
-rw-r--r--home/.config/nvim/init.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/home/.config/nvim/init.vim b/home/.config/nvim/init.vim
index 04a9d56b..e58b6996 100644
--- a/home/.config/nvim/init.vim
+++ b/home/.config/nvim/init.vim
@@ -7,7 +7,8 @@ command! W w
 command! Q q
 autocmd BufNewFile,BufRead *.asm,*.mac setfiletype nasm
 
-set tabstop=8 expandtab shiftwidth=4 shiftround smartindent cinoptions=l1(sU1m1
+set tabstop=8 expandtab shiftwidth=4 shiftround
+set smartindent cinoptions=l1(sU1m1
 set ignorecase smartcase inccommand=nosplit
 nmap <leader><leader> :nohlsearch<CR>
 set foldmethod=syntax foldlevel=99
@@ -22,6 +23,8 @@ autocmd TermOpen * setlocal nonumber statusline=%{b:term_title}
 autocmd BufEnter term://* startinsert
 tmap <C-w> <C-\><C-n><C-w>
 
+let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}}
+
 nmap <leader>h :0/^#include </,$?^#include <?sort<CR>:nohlsearch<CR>
 nmap <leader>u :0/^use/,$?^use?sort<CR>:nohlsearch<CR>
 nmap <leader>c :0/extern crate/,$?extern crate?sort<CR>:nohlsearch<CR>