Created
October 13, 2011 11:50
-
-
Save onodes/1284046 to your computer and use it in GitHub Desktop.
vim config file
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
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'rails.vim' | |
Bundle 'ruby.vim' | |
Bundle 'python.vim' | |
Bundle 'Python-2.x-Standard-Library-Reference' | |
Bundle 'scala.vim' | |
Bundle 'unite.vim' | |
Bundle 'neocomplcache' | |
Bundle 'Shougo/unite.vim' | |
Bundle 'thinca/vim-ref' | |
Bundle 'thinca/vim-quickrun' | |
Bundle 'Shougo/vimshell' | |
Bundle 'Shougo/vimproc' | |
Bundle 'boost.vim' | |
Bundle 'OmniCppComplete' | |
Bundle 'syntaxhaskell.vim' | |
Bundle 'vim-scala' | |
set tabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set autoindent | |
set nocompatible | |
set number | |
syntax on | |
filetype on | |
filetype indent on | |
filetype plugin on | |
" Use neocomplcache. | |
let g:neocomplcache_enable_at_startup = 1 | |
" " Use smartcase. | |
let g:neocomplcache_enable_smart_case = 1 | |
" " Use auto select | |
"let g:neocomplcache_enable_auto_select = 1 | |
" " Use camel case completion. | |
let g:neocomplcache_enable_camel_case_completion = 1 | |
" " Use underbar completion. | |
let g:neocomplcache_enable_underbar_completion = 1 | |
" " Set minimum syntax keyword length. | |
let g:neocomplcache_min_syntax_length = 3 | |
" " Set manual completion length. | |
let g:neocomplcache_manual_completion_start_length = 0 | |
" " Define dictionary. | |
" "let g:neocomplcache_dictionary_filetype_lists = { | |
" " \ 'default' : '', | |
" " \ 'vimshell' : $HOME.'/.vimshell_hist', | |
" " \ 'scheme' : $HOME.'/.gosh_completions', | |
" " \ 'scala' : $DOTVIM.'/dict/scala.dict' | |
" " \ 'ruby' : $DOTVIM.'/dict/ruby.dict' | |
" " \ } | |
" " | |
" " Define keyword. | |
if !exists('g:neocomplcache_keyword_patterns') | |
let g:neocomplcache_keyword_patterns = {} | |
endif | |
let g:neocomplcache_keyword_patterns['default'] = '\h\w*' | |
" " | |
" "ilet g:neocomplcache_snippets_dir = $HOME.'/snippets' | |
autocmd! FileType css setlocal omnifunc=csscomplete#CompleteCSS | |
autocmd! FileType eruby,html,markdown setlocal | |
" omnifunc=htmlcomplete#CompleteTags | |
autocmd! FileType javascript setlocal | |
" omnifunc=javascriptcomplete#CompleteJS | |
autocmd! FileType python setlocal omnifunc=pythoncomplete#Complete | |
autocmd! FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | |
colorscheme desert | |
autocmd FileType python setl autoindent | |
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class | |
autocmd FileType python setl tabstop=8 expandtab shiftwidth=4 softtabstop=4 | |
let $PYTHON_DLL="/System/Library/Frameworks/Python.framework/Versions/2.6/Python" | |
""" Unite.vim | |
" 起動時にインサートモードで開始 | |
let g:unite_enable_start_insert = 1 | |
" インサート/ノーマルどちらからでも呼び出せるようにキーマップ | |
nnoremap <silent> <C-f> :<C-u>UniteWithBufferDir -buffer-name=files file | |
inoremap <silent> <C-f> <ESC>:<C-u>UniteWithBufferDir -buffer-name=files file | |
nnoremap <silent> <C-b> :<C-u>Unite buffer file_mru | |
inoremap <silent> <C-b> <ESC>:<C-u>Unite buffer file_mru | |
" バッファ一覧 | |
nnoremap <silent> ,ub :<C-u>Unite buffer | |
" ファイル一覧 | |
nnoremap <silent> ,uf :<C-u>UniteWithBufferDir -buffer-name=files file | |
" レジスタ一覧 | |
nnoremap <silent> ,ur :<C-u>Unite -buffer-name=register register | |
" 最近使用したファイル一覧 | |
nnoremap <silent> ,um :<C-u>Unite file_mru | |
" 全部乗せ | |
nnoremap <silent> ,ua :<C-u>UniteWithBufferDir -buffer-name=files buffer file_mru bookmark file | |
" unite.vim上でのキーマッピング | |
autocmd FileType unite call s:unite_my_settings() | |
function! s:unite_my_settings() | |
" 単語単位からパス単位で削除するように変更 | |
imap <buffer> <C-w> <Plug>(unite_delete_backward_path) | |
" ESCキーを2回押すと終了する | |
nmap <silent><buffer> <ESC><ESC> q | |
imap <silent><buffer> <ESC><ESC> <ESC>q | |
endfunction | |
let g:vimproc_dll_path = $VIMRUNTIME . '/autoload/proc.so' | |
let $BOOST_ROOT="/usr/local/Cellar/boost/1.46.1" | |
set path+=$BOOST_ROOT |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment