NeoBundleでインサートモード時に遅延読み込みすると、インサートモード時に
ステータスラインの色を変更するというよくある設定が うまくいかないということを
Twitterで呟いたところ、暗黒美夢王さんから返答がきたので、そのことについて
書いてみようかと。
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
#include <stdio.h> | |
#include <stdlib.h> | |
int main(void) { | |
printf("Hello World!\n"); | |
return EXIT_SUCCESS; | |
} |
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
/*! | |
* @brief マクロのみを提供するヘッダファイル | |
* | |
* 強力なマクロを複数用意している。<br> | |
* 関数のように扱うことができない(文法拡張的な)マクロについては、<br> | |
* マクロ名の先頭に"$"を付けている。 | |
* | |
* @author koturn 0; | |
* @file macro.h | |
* @version 1.15.0.0 |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/*! | |
* @brief GNU拡張機能を用いたラムダ関数を実現するマクロ | |
* | |
* gccもしくはC++0x対応コンパイラでのみコンパイル可能<br> | |
* トップレベルで用いることはできない |
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
#if 0 | |
src=$0 | |
exe=${src%.*} | |
gcc -s -O3 -pipe -Wall -Wextra -o $exe $src && $exe $@ | |
exit | |
#endif | |
#include <stdio.h> | |
#include <stdlib.h> |
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
#if 0 | |
############################################################ | |
### If you execute this source file as a shell-script, ### | |
### you can compile this source file. ### | |
############################################################ | |
gcc -pipe -O3 -s -Wall -Wextra $0 $@ -o ${0%.*} | |
if [ $? -ne 0 ]; then | |
echo '!!!Compile error!!!' | |
fi | |
exit |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// Macros for restrict-qualifier under various environmets | |
#if _MSC_VER >= 1400 // In Visual C++ (after Visual C++ 2005), | |
# define restrict __restrict // 'restrict' and '__inline__' aren't available | |
# define __restrict__ __restrict // but '__restrict' is. | |
#elif __cplusplus // In language C++ (but not Visual C++), |
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
let $DOTVIM = $HOME . '/.vim' | |
if has('vim_starting') | |
set runtimepath+=$DOTVIM/bundle/neobundle.vim | |
endif | |
call neobundle#rc(expand('$DOTVIM/bundle/')) | |
NeoBundle 'Shougo/neobundle.vim' | |
NeoBundleLazy 'Shougo/neocomplete.vim', {'autoload' : {'insert' : 1}} | |
augroup MyAutoCmd | |
autocmd! |
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
let $DOTVIM = $HOME . '/.vim' | |
if has('vim_starting') | |
set runtimepath+=$DOTVIM/bundle/neobundle.vim | |
endif | |
call neobundle#rc(expand('$DOTVIM/bundle/')) | |
NeoBundle 'Shougo/neobundle.vim' | |
NeoBundleLazy 'Shougo/neocomplete.vim', | |
\ {'autoload' : {'insert' : 1} | |
\} |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#define BIN_LITERAL_8(bin) \ | |
( \ | |
((0x0000000f & (0x ## bin)) != 0 ? 1 : 0) | \ | |
((0x0000000f & (0x ## bin >> 4)) != 0 ? (1 << 1) : 0) | \ | |
((0x0000000f & (0x ## bin >> 8)) != 0 ? (1 << 2) : 0) | \ | |
((0x0000000f & (0x ## bin >> 12)) != 0 ? (1 << 3) : 0) | \ | |
((0x0000000f & (0x ## bin >> 16)) != 0 ? (1 << 4) : 0) | \ |
OlderNewer