From 25b1386c6a981cd3b348eff8d59e8037d9563c5c Mon Sep 17 00:00:00 2001 From: Von Random Date: Thu, 2 Jul 2015 19:05:59 +0300 Subject: [PATCH] fix default tiled layout for single screen and scrollof for vim --- rc.lua | 4 ++-- vimrc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/rc.lua b/rc.lua index d99d6b7..6105daf 100644 --- a/rc.lua +++ b/rc.lua @@ -180,9 +180,9 @@ for s = 1, screen.count() do -- Set default tiled layout for all the screens -- if s == 1 and screen.count() ~= 1 then -- in case I ever want to have default for less than 2 screens if s == 1 then - default_tiled = layouts.tiled[3] - else default_tiled = layouts.tiled[1] + else + default_tiled = layouts.tiled[3] end for tag = 1, 9 do local name = tags[s].name[tag] or tostring(tag) diff --git a/vimrc b/vimrc index 9db91d1..3677c03 100644 --- a/vimrc +++ b/vimrc @@ -16,7 +16,7 @@ set smartcase set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [POS=%04l,%04v][%p%%]\ [LEN=%L] set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc " scroll before reaching the first / final line -set scrolloff=8 +set scrolloff=3 set sidescrolloff=15 set sidescroll=1 " disable bell