2023-10-09 14:18:01 +02:00
|
|
|
-- from tutorial, needs research
|
|
|
|
|
vim.opt.backspace = '2'
|
|
|
|
|
vim.opt.showcmd = true
|
|
|
|
|
vim.opt.laststatus = 2
|
2024-01-08 13:28:36 +01:00
|
|
|
--vim.opt.autowrite = true
|
2023-10-09 14:18:01 +02:00
|
|
|
|
|
|
|
|
-- general look and feel
|
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
|
vim.opt.cursorcolumn = true
|
|
|
|
|
vim.opt.scrolloff = 5
|
|
|
|
|
vim.opt.colorcolumn = "81"
|
|
|
|
|
|
|
|
|
|
-- buffers
|
|
|
|
|
vim.opt.autoread = true
|
|
|
|
|
vim.opt.wildmode = 'longest,list'
|
|
|
|
|
vim.opt.ttyfast = true
|
2025-05-21 14:54:28 +02:00
|
|
|
--vim.opt.pastetoggle = '<F3>'
|
2023-10-09 14:18:01 +02:00
|
|
|
|
2024-01-08 13:28:36 +01:00
|
|
|
-- formatting
|
|
|
|
|
vim.opt.expandtab = true
|
2023-10-09 14:18:01 +02:00
|
|
|
vim.opt.tabstop = 4
|
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
|
vim.opt.shiftround = true
|
|
|
|
|
vim.opt.autoindent = true
|
|
|
|
|
vim.opt.list = true
|
|
|
|
|
vim.opt.listchars = 'eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:·'
|
2024-01-08 13:28:36 +01:00
|
|
|
vim.opt.smartindent = true
|
|
|
|
|
vim.opt.wrap = false
|
2023-10-09 14:18:01 +02:00
|
|
|
-- ERROR vim.opt.smartindend = true
|
|
|
|
|
-- ERROR vim.opt.nowrap = true
|
|
|
|
|
|
|
|
|
|
-- side column stuff
|
|
|
|
|
vim.opt.nu = true
|
|
|
|
|
vim.opt.signcolumn = 'yes'
|
|
|
|
|
|
|
|
|
|
-- searching
|
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
|
vim.opt.smartcase = true
|
|
|
|
|
vim.opt.incsearch = true
|
|
|
|
|
vim.opt.hlsearch = true
|
|
|
|
|
vim.opt.wildignorecase = true
|
2025-05-19 14:27:25 +02:00
|
|
|
|
|
|
|
|
-- system clipboard
|
2025-05-22 16:42:50 +02:00
|
|
|
-- this was pretty annoying
|
|
|
|
|
--vim.opt.clipboard = 'unnamedplus'
|