Skip to content

Instantly share code, notes, and snippets.

View h-east's full-sized avatar

h_east h-east

  • Osaka, Japan
  • 15:14 (UTC +09:00)
View GitHub Profile
@h-east
h-east / general.h
Created September 29, 2011 10:06
a part of general.h of exuberant ctags from http://ctags.sourceforge.net/ (GPL code)
#undef FALSE
#undef TRUE
#ifdef VAXC
typedef enum { FALSE, TRUE } booleanType;
typedef int boolean;
#else
# ifdef __cplusplus
typedef bool boolean;
#define FALSE false
#define TRUE true
@h-east
h-east / foo.txt
Created October 1, 2011 15:00
vim-jp/issue#2 test
#
#
あいうえお
@h-east
h-east / h_east_w7_1003_0049_EX.txt
Created October 2, 2011 16:06
logfile issues#30
ui_breakcheck()in, ui.c : 375
ui_breakcheck()out, ui.c : 385
ui_breakcheck()in, ui.c : 375
ui_breakcheck()out, ui.c : 385
ui_breakcheck()in, ui.c : 375
ui_breakcheck()out, ui.c : 385
ui_breakcheck()in, ui.c : 375
ui_breakcheck()out, ui.c : 385
ui_breakcheck()in, ui.c : 375
ui_breakcheck()out, ui.c : 385
@h-east
h-east / hh30.diff
Created October 3, 2011 15:40
Vim 7.3.303 based patch (Survey for vim-jp/issues#30)
diff -r 1d5e7413d728 src/Makefile
--- a/src/Makefile Thu Sep 08 23:24:14 2011 +0200
+++ b/src/Makefile Tue Oct 04 00:25:45 2011 +0900
@@ -542,7 +542,7 @@
# When using -g with some older versions of Linux you might get a
# statically linked executable.
# When not defined, configure will try to use -O2 -g for gcc and -O for cc.
-#CFLAGS = -g
+CFLAGS = -g
#CFLAGS = -O
@h-east
h-east / gist:1267145
Created October 6, 2011 11:04
issue manage
作業状態
BUGの場合
・Issue登録
・所見、1時解析、再現手順明確化
・assignメンバー決定
・2次解析、解析結果をもとに議論
・patch作成、動作確認
・vim_dev投稿
(・再考)
@h-east
h-east / gist:1397800
Created November 27, 2011 16:48
break if input ":sav_l"
:sav_l
(gdb) bt
#0 do_write (eap=0x7fffedc07470) at ex_cmds.c:2512
#1 0x00000000004590d9 in ex_write (eap=0x7fffedc07470) at ex_cmds.c:2496
#2 0x000000000046a97a in do_one_cmd (cmdlinep=0x7fffedc07ae8, sourcing=0,
cstack=0x7fffedc07640, fgetline=0x47fd07 <getexline>, cookie=0x0)
at ex_docmd.c:2668
#3 0x000000000046804c in do_cmdline (cmdline=0x0, fgetline=
0x47fd07 <getexline>, cookie=0x0, flags=0) at ex_docmd.c:1122
@h-east
h-east / gist:1662433
Created January 23, 2012 10:46
vim-jp/Issue#127 patch (:drop hoge, :tab drop hoge is not nice)
diff -r 0dabc2ce136c src/buffer.c
--- a/src/buffer.c Tue Jan 10 22:31:32 2012 +0100
+++ b/src/buffer.c Sun Jan 29 03:42:26 2012 +0900
@@ -4388,7 +4388,12 @@
{
int i;
win_T *wp, *wpnext;
- char_u *opened; /* array of flags for which args are open */
+ char_u *opened; /* array of weight for which args are open
+ * 0: not opened
@h-east
h-east / gist:1670489
Created January 24, 2012 14:41
E477 error in :all! and :sall! (vim-jp/Issue#153)
diff -r 0dabc2ce136c src/ex_cmds.h
--- a/src/ex_cmds.h Tue Jan 10 22:31:32 2012 +0100
+++ b/src/ex_cmds.h Sun Jan 29 03:40:01 2012 +0900
@@ -102,7 +102,7 @@
EX(CMD_aboveleft, "aboveleft", ex_wrongmodifier,
NEEDARG|EXTRA|NOTRLCOM),
EX(CMD_all, "all", ex_all,
- RANGE|NOTADR|COUNT|TRLBAR),
+ BANG|RANGE|NOTADR|COUNT|TRLBAR),
EX(CMD_amenu, "amenu", ex_menu,
@h-east
h-east / fmv.vim
Last active September 29, 2015 23:38
Create vimdoc-ja folder structure and move files. (for iOS Vim ja-help)
call mkdir("vimdoc-ja/doc", "p")
call mkdir("vimdoc-ja/syntax", "p")
call rename("help_ja.vim","vimdoc-ja/syntax/help_ja.vim")
call rename("arabic.jax","vimdoc-ja/doc/arabic.jax")
call rename("autocmd.jax","vimdoc-ja/doc/autocmd.jax")
call rename("change.jax","vimdoc-ja/doc/change.jax")
call rename("cmdline.jax","vimdoc-ja/doc/cmdline.jax")
call rename("debug.jax","vimdoc-ja/doc/debug.jax")
call rename("debugger.jax","vimdoc-ja/doc/debugger.jax")
call rename("develop.jax","vimdoc-ja/doc/develop.jax")
@h-east
h-east / gist:1694734
Created January 28, 2012 15:42
patch for vim-jp/Issue#147 (Inspired from @hdk1983 [Hideki EIRAKU])
diff -r 54d621a3b561 src/edit.c
--- a/src/edit.c Thu Jan 26 20:58:26 2012 +0100
+++ b/src/edit.c Sun Jan 29 00:34:53 2012 +0900
@@ -1763,9 +1763,9 @@
static void
undisplay_dollar()
{
- if (dollar_vcol)
- {
- dollar_vcol = 0;