diff options
author | June McEnroe <programble@gmail.com> | 2018-03-30 17:26:55 -0400 |
---|---|---|
committer | June McEnroe <programble@gmail.com> | 2018-03-30 17:26:55 -0400 |
commit | 24b1b683c7d1ccf21e3801520b3bb6cfde39ebce (patch) | |
tree | 55eb4ce8e04ef995447fc8de5795f07b8a3ff6d4 | |
parent | Add d-_-b crate (diff) | |
download | src-24b1b683c7d1ccf21e3801520b3bb6cfde39ebce.tar.gz src-24b1b683c7d1ccf21e3801520b3bb6cfde39ebce.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 '')
-rw-r--r-- | home/.config/nvim/init.vim | 5 |
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> |