43 lines
645 B
Lua
43 lines
645 B
Lua
local opt = vim.opt
|
|
|
|
opt.nu = true
|
|
opt.relativenumber = true
|
|
|
|
opt.tabstop = 4
|
|
opt.softtabstop = 4
|
|
opt.shiftwidth = 4
|
|
opt.expandtab = true
|
|
|
|
opt.smartindent = true
|
|
|
|
-- Mouse mode
|
|
opt.mouse = 'a'
|
|
|
|
-- Make splitting more natural
|
|
opt.splitright = true
|
|
opt.splitbelow = true
|
|
|
|
opt.wrap = false
|
|
|
|
opt.swapfile = false
|
|
opt.backup = false
|
|
opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
|
opt.undofile = true
|
|
|
|
opt.hlsearch = false
|
|
opt.incsearch = true
|
|
|
|
opt.termguicolors = true
|
|
|
|
opt.scrolloff = 8
|
|
opt.signcolumn = "yes"
|
|
opt.isfname:append("@-@")
|
|
|
|
opt.updatetime = 50
|
|
|
|
opt.colorcolumn = "80,120"
|
|
|
|
opt.conceallevel = 2
|
|
|
|
vim.g.netrw_list_hide = ".DS_Store"
|
|
|