From 24b1b683c7d1ccf21e3801520b3bb6cfde39ebce Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 30 Mar 2018 17:26:55 -0400 Subject: 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. --- home/.config/nvim/init.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'home/.config') 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 :nohlsearch set foldmethod=syntax foldlevel=99 @@ -22,6 +23,8 @@ autocmd TermOpen * setlocal nonumber statusline=%{b:term_title} autocmd BufEnter term://* startinsert tmap +let g:clipboard = {'copy':{'+':'pbcopy'},'paste':{'+':'pbpaste'}} + nmap h :0/^#include :nohlsearch nmap u :0/^use/,$?^use?sort:nohlsearch nmap c :0/extern crate/,$?extern crate?sort:nohlsearch -- cgit 1.4.1