Skip to content

Instantly share code, notes, and snippets.

View toien's full-sized avatar
🎯
Focusing

上二下中 toien

🎯
Focusing
View GitHub Profile
@toien
toien / .vimrc
Last active March 22, 2026 16:32
vimrc function: sync remote host yank to local clipboard
function! Osc52Yank()
" 注意:如果你的 Vim 不支持 clipboard,复制时需要使用 " 寄存器
if v:event.regname !=# '"'
return
endif
" 自动获取最后一次复制的内容(使用 v:event.regcontents 避免寄存器偏移)
let l:content = join(v:event.regcontents, "\n")
if empty(l:content) | return | endif
@toien
toien / std.md
Created August 16, 2022 14:53 — forked from turbo/std.md
Git Commit Message Standard

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.