Skip to content

Instantly share code, notes, and snippets.

@mridulgain
Last active November 22, 2025 04:47
Show Gist options
  • Select an option

  • Save mridulgain/f2cb147f945b661ace05b15856bd6b7b to your computer and use it in GitHub Desktop.

Select an option

Save mridulgain/f2cb147f945b661ace05b15856bd6b7b to your computer and use it in GitHub Desktop.
.vimrc
" set line no
set nu
" indents based on file extension
filetype plugin indent on
" show existing tab with 4 spaces width
set tabstop=4
" when indenting with '>', use 4 spaces width
set shiftwidth=4
" On pressing tab, insert 4 spaces
set expandtab
" cursor line
set cursorline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment