From 53fadb8e24382c0b2140d0cc7effd795a3d2cb29 Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Fri, 11 Sep 2015 12:13:11 +0300 Subject: [PATCH] Place highlighted signs on commented lines --- plugin/gerrvim.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugin/gerrvim.vim b/plugin/gerrvim.vim index 481adc2..426e690 100644 --- a/plugin/gerrvim.vim +++ b/plugin/gerrvim.vim @@ -39,6 +39,13 @@ function! s:Gerrvim() range let ready = add(ready, bufline) endfor let ready = add(ready, "-----END-----") + " Place commented signs + sign define commented text=C texthl=Search + for linen in range(a:firstline, a:lastline) + let cmd = ":sign place " . linen . " line=" . linen + let cmd .= " name=commented buffer=" . bufnr(".") + execute cmd + endfor " Spawn a new small code commenting window nonbinded to file new GerrvimCommenting resize 16 -- 2.44.0