aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-05-11 10:19:30 +0530
committerVidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com>2021-05-11 10:19:30 +0530
commitb63db7baf50b66c0b39ab9101ae0929588fb6330 (patch)
treebcc6a472c170715d399a7b5a4f5d991370c4f41b /.config/nvim
parentc902948a072ce916d73bce3108aecea22822f445 (diff)
mapped leader key and added copy-paste to clipboard functionality
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.vim23
1 files changed, 21 insertions, 2 deletions
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 <leader>y "+y
+nnoremap <leader>Y "+yg_
+nnoremap <leader>y "+y
+nnoremap <leader>yy "+yy
+
+" Paste from clipboard
+nnoremap <leader>p "+p
+nnoremap <leader>P "+P
+vnoremap <leader>p "+p
+vnoremap <leader>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