-- ====================================================================== -- options.lua — Vim options and settings -- ====================================================================== local opt = vim.opt -- Clipboard opt.clipboard = "unnamedplus" -- Editing behavior opt.backspace = { "indent", "eol", "start" } opt.mouse = "r" opt.compatible = false -- UI opt.number = true opt.cursorline = true opt.showcmd = true opt.showmode = true opt.showmatch = true opt.scrolloff = 10 opt.wrap = false -- Indentation opt.shiftwidth = 4 opt.tabstop = 4 opt.expandtab = true -- Search opt.incsearch = true opt.ignorecase = true opt.smartcase = true opt.hlsearch = true -- Files opt.backup = false opt.history = 1000 opt.tags = { "./tags;,tags;" } -- Completion opt.wildmenu = true opt.wildmode = { "list", "longest" } opt.wildignore = { "*.docx","*.jpg","*.png","*.gif","*.pdf","*.pyc","*.exe","*.flv","*.img","*.xlsx" } -- Filetype detection vim.cmd("filetype on") vim.cmd("filetype plugin on") vim.cmd("filetype indent on") vim.cmd("syntax on")