Skip to content

Instantly share code, notes, and snippets.

@k3karthic
Last active July 8, 2021 17:47
Show Gist options
  • Save k3karthic/98d9b73090b4cdb44e6a9ae84318219f to your computer and use it in GitHub Desktop.
Save k3karthic/98d9b73090b4cdb44e6a9ae84318219f to your computer and use it in GitHub Desktop.
Rudimentary Vim Config
syntax on
set number
set autoindent
set tabstop=4
set shiftwidth=4
" YAML - 2 space indent, no tabs
autocmd FileType yaml setlocal tabstop=2 shiftwidth=2 expandtab
" Python - 4 space indent, no tabs
autocmd FileType python setlocal tabstop=4 shiftwidth=4 expandtab
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment