Skip to content

Instantly share code, notes, and snippets.

@jstac
Created January 25, 2016 14:15
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 jstac/3bec513653382a4a903b to your computer and use it in GitHub Desktop.
Save jstac/3bec513653382a4a903b to your computer and use it in GitHub Desktop.
A basic vimrc
""""""""""""""""""""""""""""""""""""""""""""""""""
" A basic vimrc
"
""""""""""""""""""""""""""""""""""""""""""""""""""
set background=dark " or light, you choose
set showmode " show the mode
set bs=2 " backspace over everything
set hlsearch " highlight search matches
set textwidth=78
set vb t_vb= " flash screen instead of beep
set showmatch " shows matching parenthesis
set tabstop=4 " no. of spaces inserted when press tab
set expandtab " tabs expanded into spaces
set shiftwidth=4
set smarttab
set autoindent " use current level of indent in next line
set wildmode=longest,list " bash-like tab completion when opening files
set foldmethod=indent " this and below minimize folding
set foldlevel=99
set formatoptions=tqn
""""""""""""""""" Crucial """""""""""""""""""""""""""""
imap jj <Esc>
""""""""""""""""" Coding """""""""""""""""
autocmd FileType python set smartindent
autocmd FileType python set number
autocmd FileType c set number
autocmd FileType julia set number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment