Add vimrc
This commit is contained in:
parent
a33d6550a0
commit
915201e650
1 changed files with 26 additions and 0 deletions
26
templates/.vimrc
Normal file
26
templates/.vimrc
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
" appearance
|
||||||
|
syntax enable
|
||||||
|
set cursorline
|
||||||
|
set number
|
||||||
|
set showcmd
|
||||||
|
set showmatch
|
||||||
|
set wildmenu
|
||||||
|
|
||||||
|
" behavior
|
||||||
|
noremap j gj
|
||||||
|
noremap k gk
|
||||||
|
inoremap jk <esc>
|
||||||
|
set hlsearch
|
||||||
|
set incsearch
|
||||||
|
set lazyredraw
|
||||||
|
set directory=~/.vim/tmp
|
||||||
|
|
||||||
|
" indentation
|
||||||
|
set tabstop=4
|
||||||
|
set softtabstop=4
|
||||||
|
set shiftwidth=4
|
||||||
|
set expandtab
|
||||||
|
filetype indent on
|
||||||
|
|
||||||
|
" custom file types
|
||||||
|
autocmd FileType yaml,yml setlocal tabstop=2 softtabstop=2 shiftwidth=2
|
Loading…
Add table
Reference in a new issue