aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/nvim
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-13 18:36:09 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-13 18:36:09 +0300
commit525c01abbfd3ab292be8eff857e93c06e76670a3 (patch)
tree58d4ef2a19a098e8bd9133e51fa12fe071489828 /dotfiles/.config/nvim
parent105e7ad5d2a83b310a4b92dd25e116f62192ffca (diff)
downloadvimrice-525c01abbfd3ab292be8eff857e93c06e76670a3.tar.gz
vimrice-525c01abbfd3ab292be8eff857e93c06e76670a3.zip
fzf plugin; leader shortcuts changes
Diffstat (limited to 'dotfiles/.config/nvim')
-rw-r--r--dotfiles/.config/nvim/init.vim17
1 files 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 <leader>r :set invrelativenumber<CR>
+ map <leader>e :set invrelativenumber<CR>
+ map <leader>у :set invrelativenumber<CR>
" Shortcutting split navigation, saving a keypress:
map <C-h> <C-w>h
@@ -127,12 +129,10 @@ call plug#end()
" Replace all is aliased to S.
nnoremap S :%s//g<Left><Left>
-" with russian layout
nnoremap Ы :%s//g<Left><Left>
" Compile document
map <leader>c :!doccompiler <c-r>%<CR>
-" with russian layout
map <leader>с :!doccompiler <c-r>%<CR>
" Spell-check set to F2:
@@ -140,7 +140,6 @@ call plug#end()
" Save changes
noremap <leader>s :update<CR>
-" with russian layout
noremap <leader>ы :update<CR>
" Copy to clipboard
@@ -180,8 +179,7 @@ call plug#end()
" Join line with alt
nnoremap <M-j> J
-" with russian layout
- nnoremap <M-о> J
+ nnoremap <M-о> О
" Easier tab navigation (similar to qutebrowser)
nnoremap J :tabn<cr>
@@ -215,7 +213,12 @@ call plug#end()
let g:SuperTabContextDefaultCompletionType = "<c-x><c-o>"
" NERDTree
- map <leader>f :NERDTreeToggle<CR>
+ map <leader>r :NERDTreeToggle<CR>
+ map <leader>к :NERDTreeToggle<CR>
+
+" FZF
+ map <leader>f :FZF<CR>
+ map <leader>а :FZF<CR>
" Tagbar
map <F3> :TagbarToggle<CR>