aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-05-16 22:56:10 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2023-05-16 22:56:10 +0300
commitb7177b7127c1ac60e7ba694e9144bee846ba33c7 (patch)
treeb3860948cf06cf9b65dd5fb566f0aacb432ce67e /dotfiles/.config/nvim
parent445c8baa0b0885e172d18ade63135a7dd7b433ec (diff)
downloadvimrice-b7177b7127c1ac60e7ba694e9144bee846ba33c7.tar.gz
vimrice-b7177b7127c1ac60e7ba694e9144bee846ba33c7.zip
plugin: vim-ragtag for easier (X/HT)ML
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r--dotfiles/.config/nvim/init.vim7
1 files changed, 5 insertions, 2 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index cdb061b..fec8570 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -24,6 +24,7 @@ call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'ap/vim-css-color'
Plug 'https://gitlab.com/HiPhish/info.vim'
Plug 'rhysd/git-messenger.vim'
+ Plug 'tpope/vim-ragtag'
if has('nvim-0.6')
Plug 'neovim/nvim-lspconfig'
Plug 'ojroques/nvim-lspfuzzy'
@@ -162,18 +163,20 @@ call plug#end()
nnoremap <leader>Y "+yg_
nnoremap <leader>y "+y
nnoremap <leader>yy "+yy
-" with russian layout
vnoremap <leader>н "+y
nnoremap <leader>Н "+yg_
nnoremap <leader>н "+y
nnoremap <leader>нн "+yy
+" Copy everything in the buffer to clipboard
+ nnoremap <leader>ya :%y +<CR>
+ nnoremap <leader>нф :%y +<CR>
+
" Paste from clipboard
nnoremap <leader>p "+p
nnoremap <leader>P "+P
vnoremap <leader>p "+p
vnoremap <leader>P "+P
-" with russian layout
nnoremap <leader>з "+p
nnoremap <leader>З "+P
vnoremap <leader>з "+p