From 6bbc69f42dbb52272b9dd4b75f4573f32e82cab9 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 8 Oct 2015 00:19:40 -0400 Subject: game#SetupWindow: Flesh out buffer settings Base window/buffer-local settings on: https://github.com/mattn/invader-vim/blob/f04e7f5e8ac42ae87db6050e64449055206c4054/plugin/invader.vim#L181-L189 Gives us a clean environment to display the game in. --- autoload/space_vlaze/game.vim | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/autoload/space_vlaze/game.vim b/autoload/space_vlaze/game.vim index cbf5fc0..4c7703b 100644 --- a/autoload/space_vlaze/game.vim +++ b/autoload/space_vlaze/game.vim @@ -22,7 +22,15 @@ endfunction function! space_vlaze#game#SetupWindow() - setlocal bufhidden=delete noswapfile nolazyredraw + setlocal buftype=nofile + setlocal bufhidden=wipe + setlocal noswapfile + setlocal nonumber + setlocal nolist + setlocal nowrap + setlocal nocursorline + setlocal nocursorcolumn + setlocal nolazyredraw endfunction -- cgit v1.2.3