From: Sergey Matveev Date: Wed, 27 May 2020 10:15:54 +0000 (+0300) Subject: Place signs on commented lines X-Git-Url: http://www.git.stargrave.org/?p=codecomm.git;a=commitdiff_plain;h=20ee381c54719ca7cece89444133b6d89d036b9b Place signs on commented lines --- diff --git a/plugin/codecomm.vim b/plugin/codecomm.vim index 3a552be..e7d1a76 100644 --- a/plugin/codecomm.vim +++ b/plugin/codecomm.vim @@ -43,6 +43,13 @@ function! s:CodeComm() range let ready = add(ready, fmted) endfor let ready = add(ready, "---------------------------------- >8 ----------------------------------") + " 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 CodeCommCommenting setlocal noswapfile