From ca51f3169aeecfd78c8b27c941a0f6bb3838c38c Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 4 Nov 2022 16:36:38 +0100 Subject: vim: make colorcolumn less brute-force --- .vim/init.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '.vim/init.lua') diff --git a/.vim/init.lua b/.vim/init.lua index 1e4ee39..97ce306 100644 --- a/.vim/init.lua +++ b/.vim/init.lua @@ -11,7 +11,8 @@ local opt = vim.opt opt.backspace = 'indent,eol,start' opt.clipboard:prepend { 'unnamedplus' } opt.cmdheight = 1 -opt.colorcolumn = {80} -- depends on 'textwidth' +opt.colorcolumn = '+1' +opt.formatoptions:remove 't' -- opt.complete = '.,w,b,u' opt.completeopt = {'menu','menuone','noinsert'} opt.concealcursor = '' @@ -61,8 +62,9 @@ opt.signcolumn = 'auto' opt.smartcase = true opt.spell = false opt.spelllang = {'en_gb'} +-- opt.splitkeep = 'topline' opt.termguicolors = true -opt.textwidth = 0 +opt.textwidth = 80 opt.timeoutlen = 400 opt.title = true opt.ttimeoutlen = 10 -- cgit 1.4.1