Skip to content

Instantly share code, notes, and snippets.

View jiangyinzuo's full-sized avatar
🌱
At school

Yinzuo Jiang jiangyinzuo

🌱
At school
View GitHub Profile
@jiangyinzuo
jiangyinzuo / fzf_z.vim
Created September 20, 2023 09:41
FZF + Z vimscript
function Z(query, sink)
let l:cmd = "awk -f " . $VIMRC_ROOT . "/z.awk regex=" . a:query . " ~/.z "
call fzf#run(fzf#wrap({'source': l:cmd, 'sink': a:sink, 'options': ['--query', a:query, '--prompt', 'Z ' . a:sink . '>', '--color', 'hl:148,hl+:190']}))
endfunction
command! -bang -nargs=? Z call Z(<q-args>, 'cd')
command! -bang -nargs=? TZ call Z(<q-args>, 'tcd')
command! -bang -nargs=? LZ call Z(<q-args>, 'lcd')
command! -bang -nargs=? Zex call Z(<q-args>, 'Ex')
@dupuy
dupuy / README.rst
Last active March 16, 2025 20:02
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.