From 902099b82dcf4d057c2f5e4405bec54e04dfd235 Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Mon, 25 Dec 2023 00:45:39 -0800 Subject: [PATCH] add some light comments for mark signs --- home/dot_vimrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/home/dot_vimrc b/home/dot_vimrc index 506f0f3d..9cd8d7b4 100644 --- a/home/dot_vimrc +++ b/home/dot_vimrc @@ -165,11 +165,16 @@ function! IsValidFilename(filename) endif endfunction +" Place sign with particular symbol at line +" ChatGippity +" function! PlaceSign(id, symbol, prio, line_number) call sign_define(a:symbol, {'text': a:symbol}) call sign_place(a:id, '', a:symbol, bufnr(''), {'lnum': a:line_number, 'priority': a:prio, 'text': a:symbol}) endfunction +" Use signs to visualize marks and update for current buffer +" function! UpdateMarkSigns() " Reserved unique IDs for marks in case we want to remove in future " without wiping out all signs