X-Git-Url: http://www.git.stargrave.org/?p=codecomm.git;a=blobdiff_plain;f=plugin%2Fcodecomm.vim;h=e7d1a762ed2bd6daf2edf40fddb6d3e1f5435a06;hp=3a552be1c57d7b7eb35ac6ac2c773dcbc3e41633;hb=20ee381c54719ca7cece89444133b6d89d036b9b;hpb=1a45ca6c6fca936f436db195d9b6a1b9bd4d347f 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