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