Skip to content

Instantly share code, notes, and snippets.

@annttu
Created July 14, 2021 06:41
Show Gist options
  • Save annttu/8121ed8f1c6c64cc9bfebc95d4187c7c to your computer and use it in GitHub Desktop.
Save annttu/8121ed8f1c6c64cc9bfebc95d4187c7c to your computer and use it in GitHub Desktop.
vimrc
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