Skip to content

Instantly share code, notes, and snippets.

@JonathanWillitts
Last active November 15, 2023 12:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonathanWillitts/b1636e69f332b79ff52c4a51576efc67 to your computer and use it in GitHub Desktop.
Save JonathanWillitts/b1636e69f332b79ff52c4a51576efc67 to your computer and use it in GitHub Desktop.
Basic vim config
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Jonathan Willitts - Basic vim config
"
" To download and start using:
" $ cd ~
" $ wget https://gist.github.com/JonathanWillitts/b1636e69f332b79ff52c4a51576efc67/raw/.vimrc
"
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set background=dark
" Display line numbers, cursor position, and vertical line at 80 chars
set number
set ruler
set colorcolumn=80
" Enable syntax highlighting
syntax on
" Configure tab behaviour
set shiftwidth=4 smarttab " Use 4-space indents, intelligently use tab key
" for indentation
set expandtab " Expand tabs to spaces, never use tab chars
set tabstop=8 softtabstop=0 " Set actual tab stops to use *different*
" indentation to make stand out from tabs converted
" to spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment