ca5
5/5/2014 - 10:35 AM

.vimrc

" Neobundle
""""""""""""""""""""""""""
set nocompatible
filetype off
if has('vim_starting')
  set runtimepath+=~/.vim/bundle/neobundle.vim
    call neobundle#rc(expand('~/.vim/bundle/'))
    endif
    NeoBundle 'Shougo/neobundle.vim'
    NeoBundle 'kannokanno/previm'
    NeoBundle 'itchyny/calendar.vim'
    "NeoBundle 'davidhalter/jedi-vim'
    NeoBundle 'Shougo/neocomplcache'
    NeoBundle 'nathanaelkane/vim-indent-guides'
    filetype on


" Neobundle Packages
""""""""""""""""""""""""""
"calendar
let g:calendar_google_calendar = 1
let g:calendar_google_task = 1


"indent-guides
let g:indent_guides_enable_on_vim_startup=1
let g:indent_guides_start_level=1
let g:indent_guides_auto_colors=0
autocmd VimEnter,Colorscheme * :hi IndentGuidesOdd  ctermbg=232
autocmd VimEnter,Colorscheme * :hi IndentGuidesEven ctermbg=234
"let g:indent_guides_color_change_percent = 30
let g:indent_guides_guide_size = 1

"neocomplcache
let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_min_syntax_length = 3
let g:neocomplcache_lock_buffer_name_pattern = '\*ku\*'
let g:neocomplcache_dictionary_filetype_lists = {
    \ 'default' : ''
            \ }
inoremap <expr><C-g>     neocomplcache#undo_completion()
inoremap <expr><C-l>     neocomplcache#complete_common_string()
inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR>
function! s:my_cr_function()
return neocomplcache#smart_close_popup() . "\<CR>"
endfunction
inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>"
inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
inoremap <expr><C-y>  neocomplcache#close_popup()
inoremap <expr><C-e>  neocomplcache#cancel_popup()


" Other Settings
""""""""""""""""""""""""""
syntax on
"set enc=euc
"set termencoding=euc
set enc=utf-8
set termencoding=utf-8
set fileencodings=utf-8,euc-jp
set number
"set tags=~/.tags "ctags

set expandtab
set ts=4
set shiftwidth=4
set hlsearch
setlocal omnifunc=syntaxcomplete#Complete
setlocal formatoptions-=ro
set t_Co=256
set noautoindent
set nosmartindent
hi Pmenu ctermbg=4
hi PmenuSel ctermbg=1
hi PMenuSbar ctermbg=4

set transparency=10