Skip to content

Instantly share code, notes, and snippets.

View thinca's full-sized avatar
⌨️
Happy Vimming!

thinca thinca

⌨️
Happy Vimming!
View GitHub Profile
@nekoruri
nekoruri / donabe.md
Last active February 14, 2024 03:40
まだEmacs使ってるの?「Vim」の方が全然便利ですよ

まだEmacs使ってるの?「Vim」の方が全然便利ですよ

今まで何でEmacs使ってたんだろう…と遠い目をしながら書いてます。

まだEmacs使ってるの?

なんかEmacsを使うことって、暗黙の前提になってますよね。ぼくも一人暮らしをし始めたとき、何の逡巡もなくEmacsを購入してしまいました。確か15MBくらいする牛印のいい感じのヤツです。

でもですね、2年くらい前にEmacsをやめて、Vimにしたんですよ。妻が夜な夜なiPhoneで情報収集をしていたところ、突如Vimに惹かれたらしく、いつの間にか$EDITORにVimが鎮座していました。

@k-takata
k-takata / 256colors2.bat
Last active November 25, 2023 16:23
Testing ANSI color sequence on Windows 10 and other terminal emulators
@echo off
rem Based on Todd Larason's 256color2.pl.
rem Ported to Windows 10's Command Prompt.
setlocal EnableDelayedExpansion
rem display the colors
rem first the system ones:
echo System colors:
@shiwano
shiwano / vimgirl.txt
Last active April 25, 2017 06:55
Vim Girl の AA。 等幅。M+フォントかM+フォント合成フォントでの閲覧推奨。
メ __-─-,-- _
,イ >:::::::::::< ヽ〟
ヽ─イ /,::::,::::::::\ >─r
ヾ〟//:!:::ハ::::::|:!:ヽ ,丿
ソ r:リヤ ハ::::::ハ:ハ::|rヘ〟
Ⅲ:|:| V―ヘ::::/-ル゙|/ ハリ\ あらぶる
!|:ハ:|,-=〟ヽ/,-=.ソハリ H Vim の
!ヽriゾUソゾ "ハUソノ゙hNノソ ぽーず♡
|!ハヾヾ` `´ノlリ´
ノ:ノハ ハ 丶 クハ ____

VimConf 2016 ujihisa感想記事

2016-11-05に日本の東京のmixi, Inc.で開催されたVimConf2016に参加してきました。

ujihisa.vimとそれに続く4回のVimConfのうち、今回はじめて発表者でなく一般客として参加しました。正確には当日スタッフとして受付を担当しました。今回はじめて参加費を払うことに成功しました。 (*1)

発表内容

後述する受付的理由で、一部の発表は注意深く視聴する機会を逃した関係で、一部の発表にたいしてのみコメントします。

@ujihisa
ujihisa / vac249.md
Created August 7, 2013 03:21
Vim Advent Calendar 2012 http://atnd.org/events/33746

Vim Advent Calendar 2012 ujihisa 18 (249日目)

Vim Advent Calendar 2012 の242日目の記事です。#昨日の記事はtyruさんで、明日の記事はsyuiさんの予定です。

日付力

今日は8月6日ですね。さて問題です。「2013年8月6日からVim Advent Calendar 2012とVim Advent Calendar 2013が並走開始する日まで何日か」をVim scriptで計算してください。

大前提として、Vim Advent Calendar 2013は2013年12月1日に確実に開始するものとします。また、Vim Advent Calendar 2012は、http://atnd.org/events/33746 にかかれているように

@chikatoike
chikatoike / .vimrc
Last active December 10, 2015 09:18
" moved to https://github.com/chikatoike/config/blob/master/.vimrc
diff --git a/src/Makefile b/src/Makefile
--- a/src/Makefile
+++ b/src/Makefile
@@ -1914,6 +1914,7 @@
test_erasebackword \
test_eval \
test_fixeol \
+ test_getcwd \
test_increment \
test_insertcount \
@thinca
thinca / neobundle
Created August 22, 2012 02:14
neobundle command
#!/bin/sh
if [ -z "$1" ]; then
echo Usage: $0 {config-file}
exit
fi
vim -N -u NONE -i NONE -V1 -e -s --cmd "source $1" --cmd NeoBundleInstall! --cmd qall!
@mattn
mattn / 20120517175931.gif
Created May 17, 2012 09:06
faithandbraveさんのサンプルをvimでコーディングしてみた
20120517175931.gif
let s:reg_path = 'HKLM\System\CurrentControlSet\Control\TimeZoneInformation'
function! s:GetTimeZoneName()
let res = system(printf("reg query %s /v StandardName | findstr REG_SZ", s:reg_path))
return split(substitute(res, '\n', '', 'g'), '\s')[2]
endfunction
function! s:GetTimeZoneOffset()
let res = system(printf("reg query %s /v Bias | findstr REG_DWORD", s:reg_path))
return -(split(res, '[ \t\n]\+')[2] / 60)