From: Sergey Matveev Date: Wed, 27 May 2020 17:47:57 +0000 (+0300) Subject: Consolidate local window options X-Git-Url: http://www.git.stargrave.org/?p=codecomm.git;a=commitdiff_plain;h=4587ba9741ba217f71e608801abd34d9bc317d8e Consolidate local window options --- diff --git a/plugin/codecomm.vim b/plugin/codecomm.vim index 9226b42..a2fde10 100644 --- a/plugin/codecomm.vim +++ b/plugin/codecomm.vim @@ -51,9 +51,8 @@ function! s:CodeComm() range execute cmd endfor " Spawn a new small code commenting window nonbinded to file - new +set\ noreadonly CodeCommCommenting - setlocal noswapfile - setlocal buftype=acwrite + new CodeCommCommenting + setlocal noreadonly noswapfile buftype=acwrite call append("^", ready) " Separate codecomm_file consolidating function, called when buffer is saved autocmd! BufWriteCmd CodeCommCommenting