Update .vimrc
This commit is contained in:
parent
84323593d9
commit
f44006fa82
14
.vimrc
14
.vimrc
|
|
@ -11,12 +11,13 @@ set spelllang=fr
|
||||||
" colorscheme habamax
|
" colorscheme habamax
|
||||||
" colorscheme slate
|
" colorscheme slate
|
||||||
" colorscheme quiet
|
" colorscheme quiet
|
||||||
|
" colorscheme 256_noir
|
||||||
|
|
||||||
" for light terminal
|
" for light terminal
|
||||||
" set background=light
|
" set background=light
|
||||||
|
|
||||||
set wrap
|
set wrap
|
||||||
|
set splitright
|
||||||
" search
|
" search
|
||||||
set incsearch "incremental search
|
set incsearch "incremental search
|
||||||
set hlsearch "highlight search
|
set hlsearch "highlight search
|
||||||
|
|
@ -40,7 +41,7 @@ set smartindent
|
||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
|
|
||||||
" ctrlp
|
" ctrlp with plugins
|
||||||
" see https://ctrlpvim.github.io/ctrlp.vim/
|
" see https://ctrlpvim.github.io/ctrlp.vim/
|
||||||
" set runtimepath^=~/.vim/bundle/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')
|
let l:git_root = system('git -C ' . expand('%:p:h') . ' rev-parse --show-toplevel 2>/dev/null')
|
||||||
if v:shell_error == 0
|
if v:shell_error == 0
|
||||||
let l:git_root = substitute(l:git_root, '\n', '', 'g')
|
let l:git_root = substitute(l:git_root, '\n', '', 'g')
|
||||||
execute 'set path+=' . l:git_root
|
execute 'set path+=' . l:git_root . '/**'
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
@ -62,11 +63,12 @@ set path+=**
|
||||||
set wildmenu
|
set wildmenu
|
||||||
set wildmode=longest:full,full
|
set wildmode=longest:full,full
|
||||||
set wildoptions=pum,fuzzy
|
set wildoptions=pum,fuzzy
|
||||||
|
set wildignore+=*.o,*.a,*.class,*.pyc,*/node_modules/*,*/dist/*
|
||||||
nnoremap <C-p> :tabfind<Space>*
|
nnoremap <C-p> :tabfind<Space>*
|
||||||
|
|
||||||
" ctrl-j for terminal
|
" 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>
|
nnoremap <C-k><C-b> :30Vex<CR>
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue