From e61dbb10bd76267afaa854945a7ccc625086094d Mon Sep 17 00:00:00 2001 From: ksyasuda Date: Mon, 7 Feb 2022 03:28:41 -0800 Subject: [PATCH] more updates to vimrc --- dotfiles/.vimrc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/dotfiles/.vimrc b/dotfiles/.vimrc index 28697ce..d6749fc 100644 --- a/dotfiles/.vimrc +++ b/dotfiles/.vimrc @@ -28,7 +28,7 @@ set wildignore=*.o,*.obj,*.bak,*.exe set background=dark set showmatch set nocompatible " no more vi -set list +" set list " set path from current directory and all directories under set path=$PWD/** @@ -161,6 +161,10 @@ let g:fzf_colors = " - When set, CTRL-N and CTRL-P will be bound to 'next-history' and " 'previous-history' instead of 'down' and 'up'. let g:fzf_history_dir = '~/.local/share/fzf-history' + +command! -bang -nargs=? -complete=dir Files + \ call fzf#vim#files(, fzf#vim#with_preview({'options': ['--layout=reverse', '--info=inline']}), 0) + "------------------------------------------------------------------------------ "ale "------------------------------------------------------------------------------ @@ -545,7 +549,7 @@ nnoremap cd :CocCommand fzf-preview.CocDiagnostics " Manage extensions. nnoremap ce :CocList extensions " Show commands. -nnoremap cc :CocCommand fzf-preview.CommandPallete +nnoremap cc :CocCommand fzf-preview.CommandPalette " Find symbol of current document. nnoremap co :CocOutline " Search workspace symbols. @@ -560,6 +564,7 @@ nnoremap cp :CocListResume nnoremap cr :CocCommand fzf-preview.CocReferences " show implementations with fzf nnoremap ci :CocCommand fzf-preview.CocImplementations + "------------------------------------------------------------------------------ "which key "------------------------------------------------------------------------------ @@ -616,7 +621,7 @@ nnoremap // :CocCommand fzf-preview.Lines nnoremap ?? :CocCommand fzf-preview.BufferLines " search fzf, refs, impls, defs -nmap ff :FloatermNew --title=fzf --opener=edit fzf +nmap ff :CocCommand fzf-preview.ProjectFiles " aniwrapper/ani-cli (until i find better use for a keys) nmap as :FloatermNew --title=aniwrapper aniwrapper -qtdoomone -D144 nmap ad :FloatermNew --title=aniwrapper ani-cli -q720p -cd/home/sudacode/Videos/sauce -D144