Skip to content

Instantly share code, notes, and snippets.

View koron's full-sized avatar
🐱
meow

MURAOKA Taro koron

🐱
meow
View GitHub Profile
@koron
koron / gist:3740698
Created September 18, 2012 01:12
Added lines, recently.
for path in split(glob($HOME.'/work/*-vim'), '\n')
if isdirectory(path) && filereadable(path . '/VIM_AUTO_RTP')
let &runtimepath = &runtimepath.','.path
end
endfor
@koron
koron / gist:3749953
Created September 19, 2012 14:23
command_bar.js
}), $(document).on("keyup", function(a) {
if (a.hotkey === "ctrl+/" || a.hotkey === "s" && !$(a.target).is(":input"))
return $("#command-bar").focus()
@koron
koron / patch-use_gfw_for_ime.diff
Created September 30, 2012 04:35
Vim: use guifontwide for IME when available
# HG changeset patch
# Parent 90260c4de57396c83532cf99babecbc8f7473c16
use guifontwide for IME when available
diff -r 90260c4de573 runtime/doc/options.txt
--- a/runtime/doc/options.txt Wed Sep 26 21:55:52 2012 +0900
+++ b/runtime/doc/options.txt Tue Oct 02 10:30:19 2012 +0900
@@ -3567,6 +3567,10 @@
to set 'guifontwide' at all unless you want to override the choice
made by Pango/Xft.
@koron
koron / patch-direct_write.diff
Created September 30, 2012 13:36
using DirectWrite for Vim.
# HG changeset patch
# Parent bbf06b5100669ebdb857a00b546e36f4214c9fe7
diff -r bbf06b510066 src/Make_mvc.mak
--- a/src/Make_mvc.mak Sun Sep 30 13:33:53 2012 +0900
+++ b/src/Make_mvc.mak Sun Sep 30 22:31:55 2012 +0900
@@ -594,6 +594,7 @@
feature.h \
globals.h \
@koron
koron / gist:4373829
Created December 25, 2012 15:57
vimdoc-ja の古い trac の wiki から「訳語の統一、一貫性について」を抜き出したもの。
= 訳語の統一、一貫性について =
== 提案 ==
* 原則としてあまり気にする必要はない
* 無理に日本語表記にする必要はない
* Vim独自の概念を指す語句は、表記法を決める必要がある
== Vim関連訳語対照表 (草案) ==
※Apache プロジェクトの訳語対照表を参考にしました。[[BR]]
import java.util.Arrays;
public class IntArraySet
{
private int[] buffer;
private int length = 0;
private IntArraySet(int[] array, int length) {
this.buffer = array;
this.length = length;
@koron
koron / patch-efficient_gfw.diff
Created January 23, 2013 15:47
Vim: Patch to increase speed of drawing wide characters when using 'gfw'.
# HG changeset patch
# Parent d8378fea5bf26ec6e1589abea8d00418e9379ca7
diff -r d8378fea5bf2 src/gui.c
--- a/src/gui.c Fri Jan 18 09:23:00 2013 +0900
+++ b/src/gui.c Sun Jan 20 11:58:56 2013 +0900
@@ -2383,7 +2383,9 @@
int cl; /* byte length of current char */
int comping; /* current char is composing */
int scol = col; /* screen column */
@koron
koron / gist:4621706
Created January 24, 2013 13:40
document for 'directx' option
*'directx'* *'dx'*
'dirextx' 'dx' boolean (default: off)
global
{not in Vi}
{only available when compiled with GUI and DIRECTX
enabled for Windows, and run on Vista or newer}
When on, Vim will draw text using DirectX (DirectWrite). It makes
drawn glyphs more beatiful than default GDI. It requires 'encoding'
is "utf-8", and only works on Windows Vista or newer version.
@koron
koron / patch-direct_write-check_ttf.diff
Created January 25, 2013 12:57
Check font is TTF or not, if not, use GDI to drawing.
# HG changeset patch
# Parent 66d1fa79d3445d604a9853994b58028c9f6b76d8
diff -r 66d1fa79d344 -r c1380b2dc597 runtime/doc/options.txt
--- a/runtime/doc/options.txt Fri Jan 25 21:27:42 2013 +0900
+++ b/runtime/doc/options.txt Fri Jan 25 21:51:32 2013 +0900
@@ -2533,6 +2533,9 @@
set gfn=Ricty_Diminished:h12:cSHIFTJIS
set directx
<
+ If select a raster font (Courier, Terminal or FixedSys) to 'guifont',
@koron
koron / time.txt
Created January 26, 2013 13:56
普通に起動してこんくらい。あ C:\ はSSDだけどw
times in msec
clock self+sourced self: sourced script
clock elapsed: other lines
000.000 000.000: --- VIM STARTING ---
000.000 000.000: Allocated generic buffers
000.000 000.000: locale set
000.000 000.000: GUI prepared
000.000 000.000: clipboard setup
000.000 000.000: window checked