~/.vimrc

" changing line order can fuck things up
execute pathogen#infect()
if has("win32")
    language messages en
    behave mswin
    set nobackup nowritebackup noswapfile
    cd $USERPROFILE
    if has("gui_running")
        set guifont=Source_Code_pro:h11
        set guioptions-=T
    endif
endif

" Appearance
colorscheme solarized
set background=light
set cursorline colorcolumn=80
set hlsearch number
syntax on
highlight ShowTrailingWhitespace ctermbg=Red guibg=Red

" Indentation
set autoindent tabstop=4 shiftwidth=4
"set filetype plugin indent on

" Encoding
set encoding=utf-8 fileencoding=utf-8

" Status line
set laststatus=2 statusline=[%l,%v\ %P%M]\ %f\ %y%r%w[%{&ff}]

" Clears search highlight after pressing enter
nnoremap <silent> <CR> :noh<CR><CR>

set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set undodir=~/.vim/undo//

File location

Linux: ~/.vimrc
Windows: \Users\username\vimrc

Plugins

Leave a Reply