Created
September 9, 2012 10:55
-
-
Save nus/3683779 to your computer and use it in GitHub Desktop.
.vimrc in mac
This file contains hidden or 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 number | |
set tabstop=8 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set smarttab | |
set autoindent | |
syntax on | |
helptags ~/.vim/doc | |
autocmd FileType python setl smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class,with | |
set rtp+=~/.vim/vundle/ | |
call vundle#rc() | |
let $BOOST_ROOT = "/opt/local/include" | |
set path+=$BOOST_ROOT | |
let $STL_ROOT = "/Developer/SDKs/MacOSX10.6.sdk/usr/include/c++/4.2.1/" | |
set path+=$STL_ROOT | |
Bundle 'Shougo/neocomplcache' | |
Bundle 'aharisu/vim_goshrepl' | |
Bundle 'ack.vim' | |
Bundle 'tomtom/tcomment_vim' | |
" gvimでneocomplcacheを有効にするオプション | |
let g:neocomplcache_enable_at_startup = 1 | |
inoremap { {}<LEFT> | |
inoremap [ []<LEFT> | |
inoremap ( ()<LEFT> | |
inoremap " ""<LEFT> | |
inoremap ' ''<LEFT> | |
vnoremap { "zdi{<C-R>z}<ESC> | |
vnoremap [ "zdi[<C-R>z]<ESC> | |
vnoremap ( "zdi(<C-R>z)<ESC> | |
vnoremap " "zdi"<C-R>z"<ESC> | |
vnoremap ' "zdi'<C-R>z'<ESC> | |
" マウスを有効にする | |
set guioptions+=a | |
set mouse=a | |
set ttymouse=xterm | |
" MacVimのツールバーを消す | |
set guioptions-=T | |
" zencoding.vimの設定 | |
" タブのインデントをスペース4つに変更 | |
let g:user_zen_settings = { 'indentation': ' '} | |
" 空白を色付け | |
augroup HighlightTrailingSpaces | |
autocmd! | |
autocmd VimEnter,WinEnter,ColorScheme * highlight TrailingSpaces term=underline guibg=Red ctermbg=Red | |
autocmd VimEnter,WinEnter * match TrailingSpaces /\s\+$/ | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment