Skip to content

Instantly share code, notes, and snippets.

@sgur
sgur / .tigrc
Last active November 30, 2017 09:07
Windows 版 gVim の :terminal で tig を使うための設定
# for tig in terminal in Vim
set vertical-split = no
color date cyan default
color graph-commit magenta default
@sgur
sgur / karabiner_elements_aquaskk_on_iterm2.json
Created September 20, 2017 04:55
Locate under ~/.config/karabiner/assets/complex_modifications/
{
"title": "AquaSKK on iTerm2 / Terminal.app",
"rules": [
{
"description": "Change left_ctrl + j to Hiragana on iTerm2",
"manipulators": [
{
"conditions": [
{
"bundle_identifiers": [
@sgur
sgur / .inputrc
Last active April 9, 2018 05:23
Bash on Windows (Trusty) 上で必要な設定ファイル類
# A ~/.inputrc for Humans
# https://www.topbug.net/blog/2017/07/31/inputrc-for-humans/
$include /etc/inputrc
"\C-p":history-search-backward
"\C-n":history-search-forward
set colored-stats On
set completion-ignore-case On
@sgur
sgur / ssh_config (git for windows)
Last active February 13, 2018 06:21
SSH over HTTPS
ProxyCommand connect -H localhost:3128 %h %p
Host git.localdomain.org
ProxyCommand none
Host tunnelhost.com
ProxyCommand connect -H localhost:3128 %h %p
User user
IdentityFile ~/.ssh/ident
ServerAliveInterval 60
@sgur
sgur / HowToChange Density.md
Last active February 16, 2017 01:39
5.2 インチ LCD の端末で Nexus 5X の表示感に近づける

標準の density は 480 なので、5.2 インチLCDではステータスエリア等が大きく感じられる。

adb shell dumpsys display | grep density

で、現在の density の値を確認する。

wm density コマンドを利用して調整する

細かいのがよければ

@sgur
sgur / screen.c.diff
Created January 25, 2017 08:46
git diff src/screen.c
diff --git a/src/screen.c b/src/screen.c
index 6b4b8279a..4cf6f7824 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -4547,7 +4547,11 @@ win_line(
/*
* Found last space before word: check for line break.
*/
- if (wp->w_p_lbr && vim_isbreak(c) && !vim_isbreak(*ptr))
+ if (wp->w_p_lbr
@sgur
sgur / HowToBuildVim.md
Last active February 10, 2017 06:16
How to build Vim on MinGW64/BashOnWindows

Vim をビルドするためのメモ

(注意) : https://github.com/sgur/vim-kaoriya-patches が guilt で適用されている前提

最新のソースコードに guilt のパッチを適用しなおす

git fetch
guilt pop -a ; git merge --ff-only ; guilt push -a
@sgur
sgur / .gitattributes
Last active May 12, 2021 17:59
Corvus SKK 設定ファイル
config.xml text eol=crlf

README

Chocolatey インストール後、パッケージをインストールする前の準備

choco feature enable --name=useRememberedArgumentsForUpgrades

個別インストールするパッケージ

@sgur
sgur / vimrc_clpum.vim
Last active June 30, 2016 09:33
Vim configuration for CLPUM
if has('clpum')
cnoremap <expr> <C-g> <SID>key_descend()
cnoremap <expr> <C-w> <SID>key_ascend()
function! s:key_descend() abort "{{{
if clpumvisible()
call feedkeys("\<Right>", "t")
return ""
endif
return "\<C-g>"
endfunction "}}}