From b63db7baf50b66c0b39ab9101ae0929588fb6330 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 11 May 2021 10:19:30 +0530 Subject: mapped leader key and added copy-paste to clipboard functionality --- .config/nvim/init.vim | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) (limited to '.config/nvim/init.vim') diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 8470dfb..641c951 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -89,6 +89,27 @@ set softtabstop=2 " when indenting with '>', use 2 spaces width set shiftwidth=2 +" map leader to Space +let mapleader = " " + +" mouse support for visual, etc +set mouse=a + +" copy/paste from clipboard +" Copy to clipboard +vnoremap y "+y +nnoremap Y "+yg_ +nnoremap y "+y +nnoremap yy "+yy + +" Paste from clipboard +nnoremap p "+p +nnoremap P "+P +vnoremap p "+p +vnoremap P "+P + + + " set filetypes as typescriptreact " augroup SyntaxSettings " autocmd! @@ -128,5 +149,3 @@ set nowrap " let fc = g:firenvim_config['localSettings'] " let fc['.*'] = { 'selector': 'textarea:not([readonly]), div[role="textbox"]' } " let fc['.*'] = { 'takeover': 'always' } -" -let g:doom_one_terminal_colors = v:true -- cgit v1.2.3