Skip to content

Instantly share code, notes, and snippets.

" g:quickrun_config の初期化
if !exists("g:quickrun_config")
let g:quickrun_config={}
endif
" デフォルトの設定
let g:quickrun_config["_"] = {
\ "runner/vimproc/updatetime" : 100,
\ "split": "{'rightbelow 8sp'}"
#include <iostream>
#include <string>
#include <boost/variant.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/mpl/print.hpp>
typedef boost::mpl::print<int>::type hogehoge;
typedef boost::variant<std::string const&, char const*> any_string;
#include <iostream>
#include <string>
#include <boost/variant.hpp>
#include <boost/mpl/identity.hpp>
#include <boost/mpl/print.hpp>
typedef boost::mpl::print<int>::type hogehoge;
typedef boost::variant<std::string const&, char const*> any_string;
#include <initializer_list>
#include <iostream>
int
main(){
auto array = {"yaki", "niku", "tabe", "tai", "JP"};
for(auto& v : array){
std::cout << v;
}
// yakinikutabetaiJP
let b:inited=0
autocmd InsertEnter * call s:init_clang_complete()
function! s:init_clang_complete()
if( &filetype == 'c' || &filetype == 'cpp'
\|| &filetype == 'objc' || &filetype == 'objcpp' )
if &cp || (exists('g:inited') && g:inited)
return
endif
let b:inited=1
--- clang_complete.vim Sun Jul 10 11:36:36 2011
+++ clang_complete_.vim Sun Jul 10 13:44:20 2011
@@ -131,7 +131,6 @@
let g:clang_complete_lib_flags += 2
endif
- setlocal completefunc=ClangComplete
setlocal omnifunc=ClangComplete
if g:clang_periodic_quickfix == 1
let g:clang_exec = '"C:\path\to\clang.exe'
let g:clang_user_options = '2> NUL || exit 0"'
let $LLVM_CLANG_ROOT='D:/clang'
let g:clang_conceal_snippets=1
let g:clang_complete_auto=1
let g:clang_exec =$LLVM_CLANG_ROOT.'/bin/clang.exe'
let g:clang_use_library=1
let g:clang_library_path=$LLVM_CLANG_ROOT.'/bin'
let g:clang_debug=1
let g:clang_user_options = ""
let s:msvc_dirs = [
\ "C:/Program\ Files/Microsoft\ Visual\ Studio\ 10.0",
\ "C:/Program\ Files/Microsoft\ Visual\ Studio\ 9.0",
\ "C:/Program\ Files/Microsoft\ Visual\ Studio\ 8.0",
\]
function! s:set_msvc_path(msvc_path)
if has_key(s:, "msvc_path") || !isdirectory(a:msvc_path)
return
@osyo-manga
osyo-manga / quickrun.vim
Created March 11, 2013 13:36
quickrun.vim の設定
function! s:quickrun_config()
return unite#sources#quickrun_config#quickrun_config_all()
endfunction
" quickrun-runner {{{
" vimscript_all {{{
let s:runner = {}