From e9141b2f01b75367e377327e2563e290b77fda55 Mon Sep 17 00:00:00 2001 From: paul-loedige Date: Mon, 26 Apr 2021 17:55:37 +0200 Subject: [PATCH] added copy and paste from clipboard to neovim --- neovim/.config/nvim/init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/neovim/.config/nvim/init.vim b/neovim/.config/nvim/init.vim index d37337f..b48d28f 100644 --- a/neovim/.config/nvim/init.vim +++ b/neovim/.config/nvim/init.vim @@ -29,6 +29,18 @@ let g:vimtex_view_method = 'zathura' " lightline set laststatus=2 +" activate spell-checking +set spell + +" enable copy and past to and fro clipboard +vnoremap y "+y +nnoremap Y "+yg_ +nnoremap y "+y +nnoremap p "+p +nnoremap P "+P +vnoremap p "+p +vnoremap P "+P + "NERDTree autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif