Created
July 14, 2021 06:41
-
-
Save annttu/8121ed8f1c6c64cc9bfebc95d4187c7c to your computer and use it in GitHub Desktop.
vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax on | |
set nomodeline | |
set cursorline | |
set list listchars=tab:»·,trail:¤,nbsp:␣ | |
" Show always at least 4 lines below/above | |
set scrolloff=4 | |
"set cursorcolumn | |
hi CursorLine cterm=underline ctermbg=NONE | |
" use spaces instead of tabs | |
autocmd FileType python set ts=4 sw=4 expandtab | |
autocmd FileType css set ts=4 sw=4 expandtab | |
autocmd FileType coffee set ts=4 sw=4 expandtab | |
autocmd FileType c set ts=4 sw=4 expandtab | |
autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
autocmd FileType svg syntax off | |
" use line numbers | |
set number | |
" autoident blocs | |
set autoindent | |
" not vi compatible | |
set nocompatible | |
set viminfo='100,\"500 " read/write a .viminfo file, don't store more | |
" than 50 lines of registers | |
set history=50 " keep 50 lines of command line history |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment