Skip to content

Instantly share code, notes, and snippets.

💭
🐶

haya14busa haya14busa

💭
🐶
Block or report user

Report or block haya14busa

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active Jan 28, 2020
Hyperlinks in Terminal Emulators
View Hyperlinks_in_Terminal_Emulators.md
@romainl
romainl / Vim_pushing_built-in_features_beyond_their_limits.markdown
Last active Jan 26, 2020
Vim: pushing built-in features beyond their limits
View Vim_pushing_built-in_features_beyond_their_limits.markdown

The situation

Searching can be an efficient way to navigate the current buffer.

The first search commands we learn are usually / and ?. These are seriously cool, especially with the incsearch option enabled which lets us keep typing to refine our search pattern. / and ? really shine when all we want is to jump to something we already have our eyeballs on but they are not fit for every situation:

  • when we want to search something that's not directly there, those two commands can make us loose context very quickly,
  • when we need to compare the matches.

A better way

View VimConf 2016 for me
「参加レポートを書くまでが VimConf」らしいので、VimConf 2016 の感想記事をここに書いておきます。
今回は去年と同じくプラグインを開発しつつ、それについての発表もするということでかなりきつかったです。
何しろ、denite.nvim の開発が本格化したのは 8 月になってからでしたから、それから
unite.vim に匹敵する機能を追加するというのは正直いって無茶でした。
開発をすればするほど足りない機能が見つかりますし。
とはいえ VimConf に間に合わせるために頑張ったので、十分使えるレベルにはなったのではないでしょうか。
私は既にほぼ完全に denite.nvim に移行しています。
皆さんもぜひ試してみてください。
View vimconf2016.md

Best practices for building Vim plugins

2016-11-05 VimConf 2016

@tyru
tyru / fizzbuzz-buffer.vim
Last active Dec 18, 2016
FizzBuzz by Vim mapping
View fizzbuzz-buffer.vim
"
" fizzbuzz-buffer.vim - FizzBuzz by mappings & buffer content
"
" Rules:
" * No <expr>
" * Of course no Vim script expressions in normal mode, too
"
" Mapping Flow:
" 1. doit
" 2. getchar:{numchar}
View web.go
package main
import (
"fmt"
"net/http"
"os"
"runtime"
"strconv"
"strings"
@k-takata
k-takata / gist:628ff1103f92b9135041a15c43c85b32
Last active Sep 28, 2016
Vim 7.4.001 to 7.4.2367 patch contributor ranking
View gist:628ff1103f92b9135041a15c43c85b32
210 (Christian Brabandt)
174 (Ken Takata)
103 (Hirohito Higashi)
92 (Yasuhiro Matsumoto)
86 (Dominique Pelle)
45 (Yegappan Lakshmanan)
39 (Kazunobu Kuriyama)
34 (Mike Williams)
32 (ZyX)
28 (Ozaki Kiichi)
View blog.md

Google Summer of Code やろう

はじめに

この記事はOUCC Advent Calendar 2015のために書かれたものです.

先日OUCCのデキそうな後輩にGSoCとか興味ない?と聞いたところつらそうなイメージがあるからいいです(要約)と言われてしまい, 苦労話をしすぎたかなとちょっとショックだったのでそんなに辛くないよむしろ楽しいよ!というノリで書いていく.

他の参加者に話を聞くと僕が参加したプロジェクトはかなり特殊なやり方をしていたようなので, より一般的な話はしゅうう先生の以下の記事などを参考にすることを推奨する.

学生諸君、Google Summer of Code 2013に参加して50万円貰ってオープンソースソフトウェアのコミッターになろう - かーねる・う゛いえむにっき

@bpierre
bpierre / README.md
Last active Dec 2, 2019
Switch To Vim For Good
View README.md

Switch To Vim For Good

NOTE: This guide has moved to https://github.com/bpierre/switch-to-vim-for-good

This guide is coming from an email I used to send to newcomers to Vim. It is not intended to be a complete guide, it is about how I switched myself.

My decision to switch to Vim has been made a long time ago. Coming from TextMate 1, I wanted to learn an editor that is Open Source (so I don’t lose my time learning a tool that can be killed), cross platform (so I can use it everywhere), and powerful enough (so I won’t regret TextMate). For these reasons, Vim has always been the editor I wanted to learn, but it took me several years before I did it in a way that works for me. I tried to switch progressively, using the Janus Vim distribution for a few months, then got back to using TextMate 2 for a time, waiting for the next attempt… here is what finally worked for me.

Original gist with comments: https://gist.github.com/bpierre/0a0025d348b6001394e0

@itchyny
itchyny / incsearch-hlall.diff
Last active Aug 29, 2015
incsearch-hlall.diff
View incsearch-hlall.diff
diff -r cd5eff09c1ae src/ex_getln.c
--- a/src/ex_getln.c Thu Feb 05 20:29:59 2015 +0100
+++ b/src/ex_getln.c Sat Feb 07 02:09:58 2015 +0900
@@ -1778,8 +1778,10 @@
curwin->w_cursor = old_cursor; /* start at old position */
/* If there is no command line, don't do anything */
- if (ccline.cmdlen == 0)
+ if (ccline.cmdlen == 0) {
i = 0;
You can’t perform that action at this time.