System clipboard copy/paste using xclip.

System clipboard copy paste using xclip.Neovim doesn't require gvim.Use traditional yank and paste
This commit is contained in:
Antu Acharjee 2019-06-30 15:07:42 +06:00 committed by GitHub
parent 6443c45da5
commit 21d290b0cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ set bg=light
set go=a set go=a
set mouse=a set mouse=a
set nohlsearch set nohlsearch
set clipboard=unnamedplus set clipboard+=unnamedplus
" Some basics: " Some basics:
nnoremap c "_c nnoremap c "_c
@ -90,10 +90,6 @@ set clipboard=unnamedplus
autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff autocmd BufRead,BufNewFile *.ms,*.me,*.mom,*.man set filetype=groff
autocmd BufRead,BufNewFile *.tex set filetype=tex autocmd BufRead,BufNewFile *.tex set filetype=tex
" Copy selected text to system clipboard (requires gvim/nvim/vim-x11 installed):
vnoremap <C-c> "+y
map <C-p> "+P
" Enable Goyo by default for mutt writting " Enable Goyo by default for mutt writting
" Goyo's width will be the line limit in mutt. " Goyo's width will be the line limit in mutt.
autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80