Update .vimrc

This commit is contained in:
quenousimporte 2025-10-21 17:48:14 +02:00
parent 84323593d9
commit f44006fa82
1 changed files with 8 additions and 6 deletions

14
.vimrc
View File

@ -11,12 +11,13 @@ set spelllang=fr
" colorscheme habamax
" colorscheme slate
" colorscheme quiet
" colorscheme 256_noir
" for light terminal
" set background=light
set wrap
set splitright
" search
set incsearch "incremental search
set hlsearch "highlight search
@ -40,7 +41,7 @@ set smartindent
set tabstop=4
set shiftwidth=4
" ctrlp
" ctrlp with plugins
" see https://ctrlpvim.github.io/ctrlp.vim/
" set runtimepath^=~/.vim/bundle/ctrlp.vim
@ -50,7 +51,7 @@ function! AddGitRootToVimPath()
let l:git_root = system('git -C ' . expand('%:p:h') . ' rev-parse --show-toplevel 2>/dev/null')
if v:shell_error == 0
let l:git_root = substitute(l:git_root, '\n', '', 'g')
execute 'set path+=' . l:git_root
execute 'set path+=' . l:git_root . '/**'
endif
endif
endfunction
@ -62,11 +63,12 @@ set path+=**
set wildmenu
set wildmode=longest:full,full
set wildoptions=pum,fuzzy
set wildignore+=*.o,*.a,*.class,*.pyc,*/node_modules/*,*/dist/*
nnoremap <C-p> :tabfind<Space>*
" ctrl-j for terminal
nnoremap <C-j> :below terminal<CR>
nnoremap <C-j> :below terminal ++rows=10<CR>
" explorer
" ctrl-k-b for explorer
nnoremap <C-k><C-b> :30Vex<CR>