set scrolloff and colorcolumn
This commit is contained in:
7
init.lua
7
init.lua
@@ -29,6 +29,13 @@ vim.opt.autoindent = true
|
||||
vim.opt.smartindent = true
|
||||
-- a stricter alternative which works better for the C language:
|
||||
vim.opt.cindent = true
|
||||
|
||||
-- keep cursor <lines> away from the top and bottom of the screen
|
||||
vim.opt.scrolloff = 6
|
||||
|
||||
-- marker at line 80
|
||||
vim.opt.colorcolumn = "80"
|
||||
|
||||
-- use language‐specific plugins for indenting (better):
|
||||
vim.cmd("filetype plugin indent on")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user