From c012575fd493d27ca243c96e9337490143b8dc45 Mon Sep 17 00:00:00 2001 From: Andy Stewart Date: Mon, 25 Feb 2013 10:38:19 +0100 Subject: [PATCH] Add comment. --- plugin/gitgutter.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/plugin/gitgutter.vim b/plugin/gitgutter.vim index 4dbbab0..04c32d4 100644 --- a/plugin/gitgutter.vim +++ b/plugin/gitgutter.vim @@ -10,7 +10,12 @@ function! s:init() call s:define_highlights() call s:define_signs() - let s:first_sign_id = 3000 " to avoid clashing with other signs + " Vim doesn't namespace sign ids so every plugin shares the same + " namespace. Sign ids are simply integers so to avoid clashes with other + " signs we guess at a clear run. + " + " Note also we currently never reset s:next_sign_id. + let s:first_sign_id = 3000 let s:next_sign_id = s:first_sign_id let s:sign_ids = {} " key: filename, value: list of sign ids let s:other_signs = []