You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
1.8 KiB
66 lines
1.8 KiB
filetype off
|
|
call pathogen#runtime_append_all_bundles()
|
|
filetype plugin indent on
|
|
syntax enable
|
|
|
|
" Set defaults [:h Q_op for abbrs]
|
|
set nocompatible
|
|
set ai et sw=2 ts=2 sts=2 " auto indent, 2 space tabs
|
|
set ch=2 so=3 ls=2 " commandline, scrolloff, laststatus
|
|
set dir=/var/tmp,/tmp " dir for swapfile
|
|
set nofoldenable " turn off folding
|
|
set splitbelow splitright " new window placement
|
|
set list listchars=tab:»·,trail:·
|
|
set statusline=%<%f\ %h%m%r\ %y\ %{fugitive#statusline()}%=%-16(\ %l,%c-%v\ %)%P
|
|
|
|
" Enable 256 color xterm support
|
|
au VimEnter * if &term == 'xterm' | set t_Co=256 | endif
|
|
|
|
colorscheme wombat256mod
|
|
|
|
if has("gui_running")
|
|
set guifont=Monospace\ 10
|
|
set cursorline
|
|
set go=aegitt
|
|
set co=102
|
|
set lines=35
|
|
" Map Alt-keys for fontsize
|
|
nmap <M-+> <Plug>FontsizeInc
|
|
nmap <M-=> <Plug>FontsizeInc
|
|
nmap <M--> <Plug>FontsizeDec
|
|
nmap <M-0> <Plug>FontsizeDefault
|
|
" GUI only color scheme
|
|
colorscheme mayansmoke
|
|
endif
|
|
|
|
" Settings for tpope's surround plugin
|
|
let g:surround_45 = "<% \r -%>"
|
|
let g:surround_61 = "<%= \r %>"
|
|
autocmd FileType php let b:surround_45 = "<?php \r ?>"
|
|
|
|
" Settings for rails plugin
|
|
let g:rails_default_file='config/database.yml'
|
|
autocmd User Rails silent! Rlcd
|
|
|
|
" NERDTree settings
|
|
map <silent> <M-d> :execute 'NERDTreeToggle'<CR>
|
|
|
|
" Session plugin settings
|
|
let g:session_autosave = 1
|
|
let g:session_autoload = 1
|
|
|
|
" Set filetype for nginx confs
|
|
au BufRead,BufNewFile /usr/local/conf/* set ft=nginx
|
|
|
|
" XPTemplate setings
|
|
let g:xptemplate_vars = 'author=J.Infield&email=jinfield@gmail.com&SParg='
|
|
let g:xptemplate_bundle = 'avascript_jquery'
|
|
|
|
" Misc mappings
|
|
map <silent> <M-c> :lcd %:p:h <CR> " change to cwd of current file
|
|
imap <C-Enter> <Down>
|
|
imap <C-BS> <C-o>cc
|
|
imap <M-o> <CR><CR><Up><Space><Space>
|
|
imap <silent> <M-j> <C-o>J
|
|
map <F1> <Esc>
|
|
imap <F1> <Esc>
|