fork download
  1. 症状まとめ
  2. str.c_str(); // . を打った場合に問題なく補完が行われる
  3. str.c_str // 次の行に str. を打ったら自動的に c_str が選択され挿入される(member_complete が呼ばれる
  4.  
  5.  
  6. scriptencoding utf-8
  7.  
  8. " Windows 用のキーバインド
  9. source $VIMRUNTIME/mswin.vim
  10.  
  11. let $HOME=$VIM."/.vim"
  12.  
  13. "shell のパスを設定
  14. if has("gui_win32")
  15. set shell=C:\WINDOWS\system32\cmd.exe
  16. endif
  17.  
  18. "バックアップファイルを作るディレクトリ
  19. set backupdir=$HOME/vimbackup
  20.  
  21. "スワップファイル用のディレクトリ
  22. set directory=$HOME/vimbackup
  23.  
  24. "ファイル保存の初期ディレクトリをバッファファイル位置に設定
  25. set browsedir=buffer
  26.  
  27. "タブ文字、改行文字を表示
  28. set list
  29.  
  30. "改行、タブ文字の設定
  31. set listchars=tab:^-,eol:\
  32.  
  33. "行番号を表示
  34. set number
  35.  
  36. " ツールバーを削除
  37. set guioptions-=T
  38.  
  39. "メニューを削除
  40. set guioptions-=m
  41.  
  42. "チラツキ
  43. set completeopt=menuone
  44.  
  45.  
  46. let g:use_neocomplcache = 1
  47.  
  48.  
  49. set nocompatible
  50. filetype off
  51.  
  52. set rtp+=$VIM/dotfiles/neobundle.vim/
  53.  
  54. if has('vim_starting')
  55. call neobundle#rc(expand($VIM."/.vim/neobundle"))
  56. endif
  57.  
  58.  
  59. NeoBundle "git://github.com/tyru/restart.vim.git"
  60.  
  61. if g:use_neocomplcache
  62. NeoBundle "git://github.com/Shougo/neocomplcache.git"
  63. NeoBundle "git://github.com/Shougo/neocomplcache-snippets-complete.git"
  64. endif
  65.  
  66. NeoBundle "Shougo/vimproc"
  67. NeoBundle "git://github.com/Rip-Rip/clang_complete.git"
  68.  
  69. filetype plugin indent on
  70.  
  71.  
  72. if g:use_neocomplcache
  73. " 有効にする
  74. let g:neocomplcache_enable_at_startup=1
  75.  
  76.  
  77. let g:neocomplcache_force_overwrite_completefunc=1
  78.  
  79. let g:neocomplcache_force_omni_patterns={}
  80. let g:neocomplcache_force_omni_patterns.cpp = '[^.[:digit:] *\t]\%(\.\|->\)\|\h\w*::'
  81. endif
  82.  
  83. nnoremap <Space><Space>res :Restart<CR>
  84.  
  85.  
  86. let $LLVM_SDK='D:/LLVM/llvm'
  87. let $LLVM_ROOT='D:/LLVM/BUILD'
  88.  
  89. if isdirectory($LLVM_ROOT)
  90. let $PAHT=$LLVM_ROOT.";".$PATH
  91.  
  92. let g:clang_conceal_snippets=1
  93. let g:clang_snippets=0
  94. let g:clang_complete_auto=1
  95. let g:clang_sort_algo="none"
  96.  
  97. let g:clang_exec = $LLVM_BIN."/clang.exe"
  98. let g:clang_use_library=1
  99. let g:clang_library_path = $LLVM_BIN
  100. let g:clang_debug=0
  101. let g:clang_auto_select = 0
  102. let g:clang_complete_copen=1
  103.  
  104. let g:clang_user_options =
  105. \ '-fms-extensions -fgnu-runtime '.
  106. \ '-include malloc.h '.
  107. \ '-std=gnu++0x '
  108.  
  109. endif
  110.  
  111. let g:vimfiler_safe_mode_by_default=0
  112.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty