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
" perl: add 'use' statement for package name under the cursor | |
function! AddUse() | |
let line = line('.') | |
let col = col('.') | |
normal! yiw | |
let default = @0 | |
let package = input('Package? ', default) | |
if (search('^use\s\+'.package, 'bnw') == 0) | |
call search('^use\s\+', 'b') | |
put ='use ' . package . ';' |
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> | |
typedef struct Greeter | |
{ | |
struct Greeter (*hello)(const char*); | |
} Greeter; | |
Greeter hello(const char *name); |
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
" c.vim | |
" Syntax Highlight Rule for 'KRDS': stands for KoRe ha DaSai, similar to FIXME | |
" install this by putting it as ~/.vim/after/syntax/c.vim | |
syn keyword cTodo contained TODO FIXME XXX KRDS |
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
" quickrun - run a command and show its result quickly | |
" Author: ujihisa <http://ujihisa.nowa.jp/> | |
" ModifiedBy: kana <http://whileimautomaton.net/> | |
if exists('g:loaded_quickrun') | |
finish | |
endif | |