From 03adbea397e9d4f12986700770bcd36bf9b6f8bb Mon Sep 17 00:00:00 2001 From: Jeremy Kaplan Date: Wed, 19 Oct 2022 14:41:04 -0700 Subject: [PATCH] neovim: ;cg for GitHub line references --- neovim/init.vim | 1 + 1 file changed, 1 insertion(+) diff --git a/neovim/init.vim b/neovim/init.vim index ff6da8e..c4e26e1 100644 --- a/neovim/init.vim +++ b/neovim/init.vim @@ -315,6 +315,7 @@ autocmd FileType ledger nmap ' :call ledger#transaction_state_t nmap ;cc :let @+=expand("%") nmap ;cl :let @+=join([expand("%"), line(".")], ":") +nmap ;cg :let @+=join([expand("%"), line(".")], "#L") nmap ;cp :let @+=expand("%:p") " For some reason, (neo)vim sees as , so bind that instead.