From 20ee381c54719ca7cece89444133b6d89d036b9b Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 27 May 2020 13:15:54 +0300 Subject: [PATCH] Place signs on commented lines --- plugin/codecomm.vim | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.44.0