You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
1.7 KiB
VimL

" pathogen
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()
" turn off vi compatability, although i hear when vimrc exists this is set
" automatically
set nocompatible
" allow hidden buffers
set hidden
" longer history
set history=1000
" turn off swapfiles
set noswapfile
" persistent undo (>7.3)
set undodir=~/.vim/undodir
set undofile
" line numbers
set nu
" wild menu
set wildmenu
set wildmode=longest:full
" show the command as it is typed
" set sc
" remap the leader to ,. hate doing this but \ is so far away
let mapleader = ","
" when a file is changed externally
set autoread
" indentation
filetype plugin on
filetype indent on
set autoindent
set smartindent
" search
set hlsearch
set incsearch
set showmatch
" tab stops
set expandtab
set smarttab
set tabstop=4
set shiftwidth=4
set mat=2
set ruler
set nohls
" so we get html goodies in php files
au BufRead *.php set ft=php.html
au BufNewFile *.php set ft=php.html
syntax enable
" solarized colors
set background=dark
let g:solarized_termtrans=1
let g:solarized_termcolors=256
let g:solarized_contrast="high"
let g:solarized_visibility="high"
colorscheme solarized
" some maps
nnoremap <silent> <leader>n :NERDTreeToggle <CR>
nnoremap <silent> <leader>t :TagbarToggle <CR>
let g:EasyMotion_leader_key = '<Leader>e'
" hide toolbar in macvim, etc
if has("gui_running")
set go=-t
endif
" Syntastic
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_enable_signs=1
let g:syntastic_auto_loc_list=1
" quickly move between splits
nmap <silent> <c-h> <c-w>h
nmap <silent> <c-l> <c-w>l
nmap <silent> <c-j> <c-w>j
nmap <silent> <c-k> <c-w>k