Skip to content

Instantly share code, notes, and snippets.

@Fi3
Last active September 21, 2016 11:49
Show Gist options
  • Save Fi3/19e7f677c79f19d878eb to your computer and use it in GitHub Desktop.
Save Fi3/19e7f677c79f19d878eb to your computer and use it in GitHub Desktop.
" plugin
execute pathogen#infect()
" enable syntax highlighting
syntax enable
" enable support for 256K colors
set t_Co=256
" set background dark
set background=dark
" set colorscheme
colorscheme vividchalk
" show line numbers
set number
" set tabs to have 4 spaces
set ts=4
" indent automatically
set smartindent
" expand tabs into spaces
set expandtab
" when using the >> or << commands, shift lines by 4 spaces
set shiftwidth=4
" two spaces if .js .html
autocmd Filetype javascript setlocal ts=2 sw=2 expandtab
autocmd Filetype html setlocal ts=2 sw=2 expandtab
" show a visual line under the cursor's current line
set cursorline
" show the matching part of the pair for [] {} and ()
set showmatch
" enable all Python syntax highlighting features
let python_highlight_all = 1
" Show trailing whitespace only after some text (ignores blank lines):
highlight ExtraWhitespace ctermbg=red guibg=darkred
" Display line numbers disable with :set nonumber
set number
" folding
set foldmethod=indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment