Last active
August 29, 2015 14:11
-
-
Save naokirin/bf3bc0a2a11f3baebf2d to your computer and use it in GitHub Desktop.
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
| NeoBundle 'rhysd/vim-clang-format' | |
| NeoBundle 'Shougo/vimproc' | |
| NeoBundle 'itchyny/lightline.vim' | |
| NeoBundle "thinca/vim-quickrun" | |
| NeoBundle "osyo-manga/shabadou.vim" | |
| NeoBundle "osyo-manga/vim-watchdogs" | |
| NeoBundle "jceb/vim-hier" | |
| NeoBundle "yonchu/quickfixstatus" | |
| " :WatchdogsRun後にlightline.vimを更新 | |
| let g:Qfstatusline#UpdateCmd = function('lightline#update') | |
| NeoBundle "KazuakiM/vim-qfstatusline" | |
| " ----- lightline ----- | |
| let g:lightline = { | |
| \ 'colorscheme': 'wombat', | |
| \ 'active': { | |
| \ 'left': [ [ 'mode', 'paste' ], | |
| \ [ 'fugitive', 'filename' ] ], | |
| \ 'right':[ [ 'syntaxcheck' ] ] | |
| \ }, | |
| \ 'component_function': { | |
| \ 'fugitive': 'MyFugitive', | |
| \ 'readonly': 'MyReadonly', | |
| \ 'modified': 'MyModified', | |
| \ 'filename': 'MyFilename' | |
| \ }, | |
| \ 'separator': { 'left': ' ', 'right': ' ' }, | |
| \ 'subseparator': { 'left': ' ', 'right': ' ' }, | |
| \ 'mode_map': {'c': 'NORMAL'}, | |
| \ 'component_expand': { | |
| \ 'syntaxcheck': 'qfstatusline#Update', | |
| \ }, | |
| \ 'component_type': { | |
| \ 'syntaxcheck': 'error', | |
| \ }, | |
| \ } | |
| " ----- vim-clang-format ----- | |
| map ,x :ClangFormat<CR> | |
| " ----- watchdogs ----- | |
| let g:quickrun_config = { | |
| \ "watchdogs_checker/_" : { | |
| \ "hook/u_nya_/enable" : 1, | |
| \ "hook/inu/enable" : 0, | |
| \ "hook/unite_quickfix/enable" : 0, | |
| \ "hook/echo/enable" : 0, | |
| \ "hook/back_buffer/enable" : 0, | |
| \ "hook/close_unite_quickfix/enable" : 0, | |
| \ "hook/close_buffer/enable_exit" : 0, | |
| \ "hook/close_quickfix/enable_exit" : 1, | |
| \ "hook/redraw_unite_quickfix/enable_exit" : 0, | |
| \ "hook/close_unite_quickfix/enable_exit" : 1, | |
| \ }, | |
| \ | |
| \ "cpp/watchdogs_checker" : { | |
| \ "hook/add_include_option/enable" : 1, | |
| \ "type" : "watchdogs_checker/g++", | |
| \ }, | |
| \ | |
| \ "watchdogs_checker/g++" : { | |
| \ "cmdopt" : "-std=c++0x -Wall", | |
| \ }, | |
| \ | |
| \ "watchdogs_checker/clang++" : { | |
| \ "cmdopt" : "-std=c++0x -Wall", | |
| \ }, | |
| \} | |
| " watchdogsのフックを設定 | |
| let g:quickrun_config["watchdogs_checker/_"] = { | |
| \ "outputter/quickfix/open_cmd" : "", | |
| \ "hook/qfstatusline_update/enable_exit" : 1, | |
| \ "hook/qfstatusline_update/priority_exit" : 4, | |
| \ } | |
| call watchdogs#setup(g:quickrun_config) | |
| " 書き込み後にシンタックスチェックを行う | |
| let g:watchdogs_check_BufWritePost_enable = 1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment