writebackup=false,-- if a file is being edited by another program (or was written to file while editing with another program), it is not allowed to be edited
expandtab=true,-- convert tabs to spaces
shiftwidth=2,-- the number of spaces inserted for each indentation
tabstop=2,-- insert 2 spaces for a tab
cursorline=true,-- highlight the current line
number=true,-- set numbered lines
relativenumber=false,-- set relative numbered lines
numberwidth=4,-- set number column width to 2 {default 4}
signcolumn="yes",-- always show the sign column, otherwise it would shift the text each time
wrap=false,-- display lines as one long line
scrolloff=8,-- is one of my fav
sidescrolloff=8,
guifont="monospace:h17",-- the font used in graphical neovim applications
}
vim.opt.shortmess:append"c"
fork,vinpairs(options)do
vim.opt[k]=v
end
vim.cmd"set whichwrap+=<,>,[,],h,l"
vim.cmd[[set iskeyword+=-]]
vim.cmd[[set formatoptions-=cro]]-- TODO: this doesn't seem to work