diff options
author | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-05-11 10:19:30 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <bokuwakanojogahoshii@yahoo.com> | 2021-05-11 10:19:30 +0530 |
commit | b63db7baf50b66c0b39ab9101ae0929588fb6330 (patch) | |
tree | bcc6a472c170715d399a7b5a4f5d991370c4f41b | |
parent | c902948a072ce916d73bce3108aecea22822f445 (diff) |
mapped leader key and added copy-paste to clipboard functionality
-rw-r--r-- | .config/nvim/init.vim | 23 |
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 |