Consolidate local window options
authorSergey Matveev <stargrave@stargrave.org>
Wed, 27 May 2020 17:47:57 +0000 (20:47 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 27 May 2020 17:47:57 +0000 (20:47 +0300)
plugin/codecomm.vim

index 9226b4239e57ad15f64cef2f2451e54feb8d997c..a2fde108a428c48bdefb5d7be0f371f1834a167a 100644 (file)
@@ -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