症状まとめ
str.c_str(); // . を打った場合に問題なく補完が行われる
str.c_str // 次の行に str. を打ったら自動的に c_str が選択され挿入される(member_complete が呼ばれる
scriptencoding utf-8
" Windows 用のキーバインド
source $VIMRUNTIME/mswin.vim
let $HOME=$VIM."/.vim"
"shell のパスを設定
if has("gui_win32")
set shell=C:\WINDOWS\system32\cmd.exe
endif
"バックアップファイルを作るディレクトリ
set backupdir=$HOME/vimbackup
"スワップファイル用のディレクトリ
set directory=$HOME/vimbackup
"ファイル保存の初期ディレクトリをバッファファイル位置に設定
set browsedir=buffer
"タブ文字、改行文字を表示
set list
"改行、タブ文字の設定
set listchars=tab:^-,eol:\
"行番号を表示
set number
" ツールバーを削除
set guioptions-=T
"メニューを削除
set guioptions-=m
"チラツキ
set completeopt=menuone
let g:use_neocomplcache = 1
set nocompatible
filetype off
set rtp+=$VIM/dotfiles/neobundle.vim/
if has('vim_starting')
call neobundle#rc(expand($VIM."/.vim/neobundle"))
endif
NeoBundle "git://github.com/tyru/restart.vim.git"
if g:use_neocomplcache
NeoBundle "git://github.com/Shougo/neocomplcache.git"
NeoBundle "git://github.com/Shougo/neocomplcache-snippets-complete.git"
endif
NeoBundle "Shougo/vimproc"
NeoBundle "git://github.com/Rip-Rip/clang_complete.git"
filetype plugin indent on
if g:use_neocomplcache
" 有効にする
let g:neocomplcache_enable_at_startup=1
let g:neocomplcache_force_overwrite_completefunc=1
let g:neocomplcache_force_omni_patterns={}
let g:neocomplcache_force_omni_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
endif
nnoremap <Space><Space>res :Restart<CR>
let $LLVM_SDK='D:/LLVM/llvm'
let $LLVM_ROOT='D:/LLVM/BUILD'
if isdirectory($LLVM_ROOT)
let $PAHT=$LLVM_ROOT.";".$PATH
let g:clang_conceal_snippets=1
let g:clang_snippets=0
let g:clang_complete_auto=1
let g:clang_sort_algo="none"
let g:clang_exec = $LLVM_BIN."/clang.exe"
let g:clang_use_library=1
let g:clang_library_path = $LLVM_BIN
let g:clang_debug=0
let g:clang_auto_select = 0
let g:clang_complete_copen=1
let g:clang_user_options =
\ '-fms-extensions -fgnu-runtime '.
\ '-include malloc.h '.
\ '-std=gnu++0x '
endif
let g:vimfiler_safe_mode_by_default=0