Skip to content

Instantly share code, notes, and snippets.

@ffledgling
Created August 23, 2013 03:07
Show Gist options
  • Save ffledgling/6315156 to your computer and use it in GitHub Desktop.
Save ffledgling/6315156 to your computer and use it in GitHub Desktop.
My own .vimrc file, kept for reference.
" set line numbering
set nu
" formatting options
set shiftwidth=4 "set default
set softtabstop=4
set autoindent
set smartindent
set smarttab
set expandtab
syntax on
filetype plugin indent on
""" search options
set magic " search using extended regex
" set incsearch " instant search
set ignorecase " Make search case insensitive
set smartcase " if the search pattern contains upper case letters, then make the search
""" Auto completion
" Omni Completion
set omnifunc=syntaxcomplete#Complete
" Autocomplete with wildchar in command mode
set wildmenu
" Highlight trailing whitespace
" FIX THIS, DOESN'T WORK!
" highlight ExtraWhitespace ctermbg=red guibg=red
" match ExtraWhitespace /\s\+$/
" Adding Plugin Pathogen
execute pathogen#infect()
execute pathogen#helptags()
""" Powerline settings
""" Unicode glyphs
set encoding=utf-8 " Necessary to show Unicode glyphs
""" Disable vi-compatibilty
set nocompatible
set laststatus=2 " Always show the statusline
let g:Powerline_symbols = 'unicode' " Define dividers and shii, look at help: Powerline_symbols
let g:Powerline_theme = 'default' " Powerline theme
" Set ColorSchemes
" Setting this after all the plugins and shii have loaded, because Monokai
" exists in one of added colorscheme plugins
"
" This is a lot faster than checking filetype for some reason
" autocmd BufNewFile,BufRead *.py colorscheme Monokai
" autocmd filetype python colorscheme Monokai
autocmd BufNewFile,BufRead *.tex colorscheme blacklight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment