From 4587ba9741ba217f71e608801abd34d9bc317d8e Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Wed, 27 May 2020 20:47:57 +0300 Subject: [PATCH] Consolidate local window options --- plugin/codecomm.vim | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 -- 2.44.0