From cd618b6cced8ef37e12b42762f1558db2df97a1b Mon Sep 17 00:00:00 2001 From: Wiktor Zykubek Date: Wed, 18 Mar 2020 13:51:25 +0100 Subject: [PATCH] Few changes in vifm and nvim configs --- botfiles/.config/nvim/init.vim | 33 +++++++++++++++++++-------------- botfiles/.config/vifm/vifmrc | 1 + 2 files changed, 20 insertions(+), 14 deletions(-) diff --git a/botfiles/.config/nvim/init.vim b/botfiles/.config/nvim/init.vim index 097f3f0..6f5b89f 100644 --- a/botfiles/.config/nvim/init.vim +++ b/botfiles/.config/nvim/init.vim @@ -21,6 +21,8 @@ call plug#begin('~/.config/nvim/bundle') Plug '~/.fzf' Plug 'junegunn/fzf.vim' Plug 'scrooloose/nerdtree' + Plug 'jistr/vim-nerdtree-tabs' + Plug 'vifm/vifm.vim' Plug 'dense-analysis/ale' @@ -77,7 +79,7 @@ set scrolloff=5 set pumheight=10 set autoindent set smarttab -set number number +set number relativenumber set clipboard=unnamedplus set inccommand=nosplit set tabstop=4 @@ -191,7 +193,7 @@ let g:lightline = { "================ " Plugin configs "================ -let g:move_key_modifier = 'S' +let g:move_key_modifier = 'C' " ALE - Asynchronous Lint Engine hi ALEWarning cterm=undercurl @@ -242,7 +244,7 @@ let g:fzf_colors = \ 'header': ['fg', 'Comment'] } " Default fzf layout -let g:fzf_layout = { 'down': '~50%' } +let g:fzf_layout = { 'down': '~70%' } " Python paths, needed for virtualenvs let g:python3_host_prog = '/usr/bin/python3' @@ -340,17 +342,20 @@ map j gj map k gk " fzf, fuzzy finder -nnoremap :Files +nnoremap :Files nnoremap :GFiles let g:fzf_action = { \ 'ctrl-t': 'tab split', \ 'ctrl-x': 'split', \ 'ctrl-v': 'vsplit' } -imap (fzf-complete-word) -imap (fzf-complete-path) -imap (fzf-complete-file-ag) -imap (fzf-complete-line) +" vifm +nnoremap :Vifm + +" imap (fzf-complete-word) +" imap (fzf-complete-path) +" imap (fzf-complete-file-ag) +" imap (fzf-complete-line) map :NERDTreeToggle @@ -374,14 +379,14 @@ map aG :ALEGoToDefinition " Tab Managment map :tabnew map :tabclose -nnoremap gT nnoremap gt +nnoremap gT " Split Managment -nnoremap -nnoremap -nnoremap -nnoremap +nnoremap +nnoremap +nnoremap +nnoremap " Spell-check (English US and Polish) map :setlocal spell! spelllang=en_us @@ -391,7 +396,7 @@ map :setlocal spell! spelllang=pl cnoremap sudow w !sudo tee % >/dev/null " Open terminal -map :vsplit term://zsh +" map :vsplit term://zsh " Exit from terminal mode tnoremap diff --git a/botfiles/.config/vifm/vifmrc b/botfiles/.config/vifm/vifmrc index d042331..eda9871 100644 --- a/botfiles/.config/vifm/vifmrc +++ b/botfiles/.config/vifm/vifmrc @@ -45,6 +45,7 @@ nnoremap S :sort nnoremap w :view vnoremap w :viewgv nnoremap cc cw +nnoremap I za " ------------------------------------------------------------------------------