37 lines
1.2 KiB
Lua
37 lines
1.2 KiB
Lua
|
|
vim.opt.incsearch = true -- show search incrementally as it's run
|
|
|
|
vim.opt.scrolloff = 8 -- try to have at least 8 rows at the bottom of the screen
|
|
|
|
vim.opt.updatetime = 50
|
|
|
|
vim.opt.signcolumn = "no" -- no no no
|
|
|
|
-- from my original vimrc
|
|
vim.opt.expandtab = true
|
|
|
|
-- formatoptions
|
|
-- https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table
|
|
-- my original was cqr:
|
|
-- c: Auto-wrap comments using textwidth, inserting the current comment leader automatically.
|
|
-- q: Allow formatting of comments with "gq".
|
|
-- r: Automatically insert the current comment leader after hitting <Enter> in Insert mode.
|
|
-- default is jcroql:
|
|
-- j: (nvim) Where it makes sense, remove a comment leader when joining lines.
|
|
-- o: Automatically insert the current comment leader after hitting 'o' or 'O' in Normal mode.
|
|
-- l: Long lines are not broken in insert mode: When a line was longer than 'textwidth' when the insert command started, Vim does not automatically format it.
|
|
--
|
|
-- the defaults seem fine
|
|
|
|
vim.opt.shiftwidth = 4
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.compatible = false
|
|
|
|
vim.opt.whichwrap = "<,>,h,l,[,]"
|
|
|
|
-- -- whitespace
|
|
-- vim.opt.listchars.tab = " "
|
|
-- vim.opt.listchars.trail = " "
|
|
-- vim.opt.listchars.extends = "»"
|
|
-- vim.opt.listchars.precedes = "«"
|