From: Sergey Matveev Date: Wed, 27 May 2020 17:37:15 +0000 (+0300) Subject: Forcefully set noro for CodeCommCommenting window X-Git-Url: http://www.git.stargrave.org/?p=codecomm.git;a=commitdiff_plain;h=c7e0977183e8a9cc613a4df534dfcf82401a1223;ds=sidebyside Forcefully set noro for CodeCommCommenting window Because git difftool can invoke vimdiff with forced read-only windows. --- diff --git a/plugin/codecomm.vim b/plugin/codecomm.vim index e7d1a76..9226b42 100644 --- a/plugin/codecomm.vim +++ b/plugin/codecomm.vim @@ -51,7 +51,7 @@ function! s:CodeComm() range execute cmd endfor " Spawn a new small code commenting window nonbinded to file - new CodeCommCommenting + new +set\ noreadonly CodeCommCommenting setlocal noswapfile setlocal buftype=acwrite call append("^", ready)