Skip to content

Instantly share code, notes, and snippets.

View h-east's full-sized avatar

h_east h-east

  • Osaka, Japan
  • 08:09 (UTC +09:00)
View GitHub Profile
@h-east
h-east / part_vimrc.vim
Last active March 8, 2023 22:12
vim setting for vimdoc-ja
nnoremap _c :windo set conceallevel=2<CR>:windo highlight link helpIgnore Ignore<CR>
nnoremap _C :windo set conceallevel=0<CR>:windo highlight link helpIgnore Error<CR>
command -nargs=1 -complete=file EnDocDiff %bw|edit ~/samba/github/vim/runtime/doc/<args>|vert diffsp <args>|wincmd l|norm _C
diff --git a/src/edit.c b/src/edit.c
index eac480314..52955b2e1 100644
--- a/src/edit.c
+++ b/src/edit.c
@@ -4868,6 +4868,7 @@ ins_compl_next(
int found_end = FALSE;
int advance;
int started = compl_started;
+ static int need_firsttime_screen_update = TRUE;
@h-east
h-east / a.md
Created January 30, 2019 08:07
Forked Vim-plug

Difference from origin

  • My forked Vim-plug does not execute ":helptags" when the help tag file is managed with git.
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/h-east/vim-plug/master/plug.vim
diff --git a/src/ex_docmd.c b/src/ex_docmd.c
index 67f505d96..5e67c8632 100644
--- a/src/ex_docmd.c
+++ b/src/ex_docmd.c
@@ -2827,18 +2827,22 @@ parse_command_modifiers(exarg_T *eap, char_u **errormsg, int skip_only)
case 't': if (checkforcmd(&p, "tab", 3))
{
- long tabnr = get_address(eap, &eap->cmd, ADDR_TABS,
- eap->skip, skip_only, FALSE, 1);
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt
index 22a4c0054..abb9ccfbd 100644
--- a/runtime/doc/eval.txt
+++ b/runtime/doc/eval.txt
@@ -4043,10 +4043,10 @@ flatten({list} [, {maxdepth}]) *flatten()*
:echo flatten([1, [2], 3])
< [1, 2, 3] >
:echo flatten([[[1], [2], [3]]], 1)
-
-< [[1], [2], [3]]
" カレントディレクトリを tagsファイルのあるディレクトリ(==プロジェクトルート)へ移動する
function! s:cdProjectRoot()
let filepath = findfile("tags", ".;")
if filepath != ""
let cd = substitute(filepath, "tags$", "", "")
if cd != ""
exec "cd" cd
echo "Cd to project root(" . cd . ")"
else
echo "Already in project root(" . getcwd() . ")"
@h-east
h-east / vimdoc-ja_progress.md
Last active November 28, 2018 12:24
vimdoc-jaの翻訳状況 (2018/11/24現在)

vimdoc-jaの翻訳状況 (2018/11/24現在)

未翻訳残は以下のファイルのみ。 (eval.txt, options.txt はPR済。spell.txtは作業中(進捗 約5%)。)

ファイル名 行数 追加行数 削除行数 作業者 メモ
eval.txt 11847 10(+) 5(-)
hebrew.txt 142 1(+) 1(-) jaxファイル自体がない。ヘブライ語対応を日本語で読みたい?
options.txt 9274 1(+) 1(-)
@h-east
h-east / git_credential.md
Last active November 5, 2018 02:05
GitHubで2要素認証を設定しているユーザーが gitにhttpsでアクセスする時に認証情報入力を省く方法

コメントに書く。

diff --git a/src/ex_getln.c b/src/ex_getln.c
index 7f748cb17..c316e192a 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -436,12 +436,18 @@ finish_incsearch_highlighting(
}
restore_viewstate(&is_state->old_viewstate);
highlight_match = FALSE;
+
+ // by default search all lines

for Vim

package提供者の責務

  • インストール方法、更新方法をドキュメント化しておく。
  • git clone(pull)後にpackage使用者がおこなうべき手順があればそれを書く。

package使用者(パッケージマネージャ含む)の責務

  • ドキュメントに書かれてある手順でインストール、更新をおこなう。
  • ドキュメントに書いていないことはしない。