From: Sergey Matveev Date: Fri, 11 Sep 2015 09:13:11 +0000 (+0300) Subject: Place highlighted signs on commented lines X-Git-Tag: 0.2~1 X-Git-Url: http://www.git.stargrave.org/?p=gerrvim.git;a=commitdiff_plain;h=53fadb8e24382c0b2140d0cc7effd795a3d2cb29 Place highlighted signs on commented lines --- 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