plugins: add keybindings for fzf commands
* Removes ctrlP plugin and configuration. * Stop opening nerdTree by default. * Adds keybindings for fzf commands. Co-Authored-by: iGor milhit <igor@milhit.ch>main
parent
1d090273ff
commit
d02bb711bd
28
init.vim
28
init.vim
|
@ -30,7 +30,6 @@ Plug 'pappasam/coc-jedi', { 'do': 'yarn install --frozen-lockfile && yarn build'
|
||||||
Plug 'stsewd/isort.nvim', { 'do': ':UpdateRemotePlugins' }
|
Plug 'stsewd/isort.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
Plug 'vitalk/vim-simple-todo' " Allow to manage todo list easily
|
Plug 'vitalk/vim-simple-todo' " Allow to manage todo list easily
|
||||||
" Search
|
" Search
|
||||||
Plug 'kien/ctrlp.vim' " Search 'Ctrl+P' like
|
|
||||||
Plug 'jremmen/vim-ripgrep' " Use ripgrep as vimgrep
|
Plug 'jremmen/vim-ripgrep' " Use ripgrep as vimgrep
|
||||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fuzzy search, ensure fzf is fresh installed
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } " Fuzzy search, ensure fzf is fresh installed
|
||||||
Plug 'junegunn/fzf.vim' " fzf for vim/neovim
|
Plug 'junegunn/fzf.vim' " fzf for vim/neovim
|
||||||
|
@ -128,22 +127,13 @@ let g:airline_theme='nord'
|
||||||
let g:table_mode_corner='|'
|
let g:table_mode_corner='|'
|
||||||
|
|
||||||
" NERDTree. By default, NERDTree is open when no file is provided when launching vim/neovim
|
" NERDTree. By default, NERDTree is open when no file is provided when launching vim/neovim
|
||||||
autocmd StdinReadPre * let s:std_in=1
|
" autocmd StdinReadPre * let s:std_in=1
|
||||||
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
" autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
|
||||||
let g:NERDTreeWinSize=40
|
let g:NERDTreeWinSize=40
|
||||||
|
|
||||||
" vim-json, don't conceal
|
" vim-json, don't conceal
|
||||||
let g:vim_json_syntax_conceal=0
|
let g:vim_json_syntax_conceal=0
|
||||||
|
|
||||||
" ctrlP
|
|
||||||
" Match window position, number of results
|
|
||||||
let g:ctrlp_match_window='top,order:ttb,min:1,max:10,results:10'
|
|
||||||
"set the working directory
|
|
||||||
let g:ctrlp_working_path_mode='ra'
|
|
||||||
" enable caching
|
|
||||||
let g:ctrlp_use_caching=1
|
|
||||||
let g:ctrlp_clear_cache_on_exit=0
|
|
||||||
|
|
||||||
" Pandoc
|
" Pandoc
|
||||||
" Autoformatting with hardwrap
|
" Autoformatting with hardwrap
|
||||||
let g:pandoc#formatting#mode="hA"
|
let g:pandoc#formatting#mode="hA"
|
||||||
|
@ -265,6 +255,20 @@ let g:vimtex_compiler_latexmk = {
|
||||||
\ ],
|
\ ],
|
||||||
\}
|
\}
|
||||||
|
|
||||||
|
" #########################################
|
||||||
|
" #########################################
|
||||||
|
" Key bindings for FZF
|
||||||
|
nnoremap <leader>gf :GFiles<CR>
|
||||||
|
nnoremap <leader>gs :GFiles?<CR>
|
||||||
|
nnoremap <leader>h :History<CR>
|
||||||
|
nnoremap <leader>hc :History:<CR>
|
||||||
|
nnoremap <leader>hs :History/<CR>
|
||||||
|
nnoremap <leader>l :Lines<CR>
|
||||||
|
nnoremap <leader>bl :BLines<CR>
|
||||||
|
nnoremap <leader>c :Commits<CR>
|
||||||
|
nnoremap <leader>bc :BCommits<CR>
|
||||||
|
nnoremap <leader>? :Helptags<CR>
|
||||||
|
|
||||||
" Syntax coloration and color theme
|
" Syntax coloration and color theme
|
||||||
syntax enable
|
syntax enable
|
||||||
colorscheme nord
|
colorscheme nord
|
||||||
|
|
Loading…
Reference in New Issue