From 525c01abbfd3ab292be8eff857e93c06e76670a3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 13 Jan 2021 18:36:09 +0300 Subject: fzf plugin; leader shortcuts changes --- dotfiles/.config/nvim/init.vim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim index 33fae1c..8c3a006 100644 --- a/dotfiles/.config/nvim/init.vim +++ b/dotfiles/.config/nvim/init.vim @@ -13,6 +13,7 @@ call plug#begin('~/.local/share/nvim/site/plugged') Plug 'PotatoesMaster/i3-vim-syntax' Plug 'jreybert/vimagit' Plug 'tpope/vim-commentary' + Plug 'junegunn/fzf' Plug 'preservim/nerdtree' Plug 'ervandew/supertab' Plug 'neomake/neomake' @@ -112,7 +113,8 @@ call plug#end() set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯХЪБЮ;ABCDEFGHIJKLMNOPQRSTUVWXYZ{}<>,фисвуапршолдьтщзйкыегмцчняхъэ;abcdefghijklmnopqrstuvwxyz[]' " Toggle relative line numbers - map r :set invrelativenumber + map e :set invrelativenumber + map у :set invrelativenumber " Shortcutting split navigation, saving a keypress: map h @@ -127,12 +129,10 @@ call plug#end() " Replace all is aliased to S. nnoremap S :%s//g -" with russian layout nnoremap Ы :%s//g " Compile document map c :!doccompiler % -" with russian layout map с :!doccompiler % " Spell-check set to F2: @@ -140,7 +140,6 @@ call plug#end() " Save changes noremap s :update -" with russian layout noremap ы :update " Copy to clipboard @@ -180,8 +179,7 @@ call plug#end() " Join line with alt nnoremap J -" with russian layout - nnoremap J + nnoremap О " Easier tab navigation (similar to qutebrowser) nnoremap J :tabn @@ -215,7 +213,12 @@ call plug#end() let g:SuperTabContextDefaultCompletionType = "" " NERDTree - map f :NERDTreeToggle + map r :NERDTreeToggle + map к :NERDTreeToggle + +" FZF + map f :FZF + map а :FZF " Tagbar map :TagbarToggle -- cgit v1.2.3