Add some stuff to vimrc
This commit is contained in:
@@ -63,20 +63,20 @@ set mouse=a
|
|||||||
set mouse=c
|
set mouse=c
|
||||||
set undolevels=1337
|
set undolevels=1337
|
||||||
set backspace=indent,eol,start
|
set backspace=indent,eol,start
|
||||||
|
set wildmenu " autocomplete :e
|
||||||
|
set lazyredraw " redraw only when necessary
|
||||||
|
|
||||||
" ------------------------------------- Indents & Whitespaces ------------------
|
" ------------------------------------- Indents & Whitespaces ------------------
|
||||||
set tabstop=4
|
set tabstop=4 " how many spaces are a tab when opening a file
|
||||||
set softtabstop=4
|
set softtabstop=4 " how many spaces get placed instead of a tab
|
||||||
set shiftwidth=4
|
|
||||||
"set noexpandtab " tabs are not spaces
|
|
||||||
set expandtab " tabs are spaces
|
set expandtab " tabs are spaces
|
||||||
set smartindent
|
set smartindent
|
||||||
|
|
||||||
" File specific indents
|
" File specific indents
|
||||||
autocmd FileType rust setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|
autocmd FileType rust setlocal tabstop=4 softtabstop=4 expandtab
|
||||||
autocmd FileType perl setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab
|
autocmd FileType perl setlocal tabstop=8 softtabstop=8 noexpandtab
|
||||||
autocmd FileType conf setlocal tabstop=8 shiftwidth=8 softtabstop=8 noexpandtab
|
autocmd FileType conf setlocal tabstop=8 softtabstop=8 noexpandtab
|
||||||
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 softtabstop=2 expandtab
|
autocmd FileType yaml setlocal tabstop=2 softtabstop=2 expandtab
|
||||||
|
|
||||||
set list
|
set list
|
||||||
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
set listchars=tab:»\ ,extends:›,precedes:‹,nbsp:·,trail:·
|
||||||
@@ -88,6 +88,12 @@ set smartcase " case sensitive with capital letters
|
|||||||
set hlsearch " highlight all results
|
set hlsearch " highlight all results
|
||||||
nnoremap<leader><space> :nohlsearch<CR>
|
nnoremap<leader><space> :nohlsearch<CR>
|
||||||
|
|
||||||
|
" ------------------------------------- Folding --------------------------------
|
||||||
|
set foldenable
|
||||||
|
set foldlevelstart=30 " open folds at start
|
||||||
|
set foldnestmax=30
|
||||||
|
set foldmethod=indent
|
||||||
|
|
||||||
" ------------------------------------- netrw ----------------------------------
|
" ------------------------------------- netrw ----------------------------------
|
||||||
map <C-f> :Ex <CR>
|
map <C-f> :Ex <CR>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user