Adds a couple of settings and remaps

This commit is contained in:
zwergius 2024-01-24 16:03:22 +01:00
parent 6a8f6a9bb8
commit 82a8ea9330
2 changed files with 25 additions and 1 deletions

View file

@ -2,6 +2,9 @@
vim.opt.number = true
vim.opt.relativenumber = true
-- no line wrap
vim.opt.wrap = false
-- Indents
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
@ -9,10 +12,20 @@ vim.opt.shiftwidth = 2
vim.opt.expandtab = true
vim.opt.smartindent = true
-- Infinite undo
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
vim.opt.undofile = true
-- Set highlight on search
vim.o.hlsearch = false
vim.o.hlsearch = true
vim.opt.incsearch = true
-- Scroll buffer
vim.opt.scrolloff = 8
-- not sure
vim.opt.colorcolumn = '80'
-- Filetype overrides
vim.filetype.add {
extension = {