Created
August 6, 2012 10:28
-
-
Save rhizoome/3273275 to your computer and use it in GitHub Desktop.
My vim config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
call pathogen#infect() | |
syntax on | |
filetype plugin on | |
set tw=80 | |
set autoindent | |
set noeb vb t_vb= | |
set guifont=Menlo\ Regular:h13 | |
set number | |
set tabstop=3 | |
set shiftwidth=3 | |
set wildmenu | |
set wildmode=list:longest,full | |
set completeopt=preview,menu,longest | |
inoremap <expr> <CR> pumvisible() ? "\<C-y>" : "\<C-g>u\<CR>" | |
set tags=./tags;tags; | |
map <C-Enter> :sp <CR>:exec("tag ".expand("<cword>"))<CR> | |
set background=dark | |
colorscheme solarized | |
set ruler | |
set guioptions-=T | |
map <C-h> <C-W>h | |
map <C-J> <C-W>j | |
map <C-K> <C-W>k | |
map <C-l> <C-W>l | |
imap <A-space> <C-p><C-p> | |
imap <C-space> <C-x><C-o> | |
let $PYTHONPATH .= ":/usr/local/lib/python2.7/site-packages" | |
au FileType python source /usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/share/vim/plugin/ropevim.vim | |
" Only load cursorline / visible tab etc in GUI mode | |
if has("gui_running") | |
set list listchars=tab:⎮\ ,trail:●,precedes:…,extends:…,nbsp:‗ | |
highlight SpecialKey guibg=background | |
if &background == "light" | |
highlight SpecialKey guifg=#eee8d5 | |
else | |
highlight SpecialKey guifg=#073642 | |
end | |
else | |
let g:solarized_termcolors=256 | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sherlock:log-db ganwell$ ls ~/.vim/bundle/ | |
camelcasemotion pythoncomplete tabular vim-colors-solarized | |
sherlock:log-db ganwell$ vi mysess | |
sherlock:log-db ganwell$ cat ~/.vim/bundle/*/.git/config | grep url | |
url = https://github.com/vim-scripts/camelcasemotion.git | |
url = https://github.com/meermanr/pythoncomplete.git | |
url = https://github.com/godlygeek/tabular.git | |
url = https://github.com/altercation/vim-colors-solarized |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! DoMyResize() | |
if &columns > 220 | |
set guifont=Menlo\ Regular:h14 | |
exe 'vert 1resize ' . (&columns - 2*90-2) | |
vert 2resize 90 | |
vert 3resize 90 | |
else | |
set guifont=Menlo\ Regular:h13 | |
exe 'vert 1resize ' . (&columns - 2*85-2) | |
vert 2resize 85 | |
vert 3resize 85 | |
endif | |
endfunction | |
set lines=999 | |
set columns=999 | |
args **/*.py | |
vsplit | |
TlistToggle | |
autocmd VimResized * call DoMyResize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment