Last active
October 22, 2015 10:36
-
-
Save toringe/cb3f5d94dffc1e702e18 to your computer and use it in GitHub Desktop.
My VIM configuration
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
call pathogen#infect() " Use Pathogen manager | |
syntax on " Enable syntax highlighting | |
set t_Co=256 " Terminal is 256 color capable | |
set background=dark " Light colors | |
colorscheme gruvbox " Color scheme | |
set fileformat=unix " Always use unix line endings | |
set noerrorbells " Don't make any noise | |
set number " Show line numbers | |
set ts=4 " Set TABs to have 4 spaces | |
set autoindent " Auto indent | |
set showmatch " Show matching pair of brackets | |
set shiftwidth=4 " Use four spaces when indenting | |
set cursorline " Highlight current line | |
set laststatus=2 " Always show statusline | |
set visualbell " Be quiet | |
let g:airline_powerline_fonts = 1 " Automatically use powerline symbols | |
let python_highlight_all = 1 " All ython syntax highlight features | |
let &colorcolumn=join(range(81,999),",") " Highlight column 81 and beyond | |
" Highlight colors of columns beyond 80 chars | |
hi ColorColumn guibg=#2d2d2d ctermbg=234 | |
" Highlight current line | |
hi CursorLine term=none cterm=none ctermbg=234 | |
" Use spesific settings for python files | |
au FileType python setlocal tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
" Common typos... | |
map :W :w | |
map :Q :q |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment