Created
January 25, 2016 14:15
-
-
Save jstac/3bec513653382a4a903b to your computer and use it in GitHub Desktop.
A basic vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""""""""""""""""""""""""""""""""""""""""""""""""" | |
" 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