-- {{@@ header() @@}} local opt = vim.opt vim.o.autochdir = false opt.wildignorecase = true -- Make filenames autocompletion case-insensitive opt.ignorecase = true -- Make search case insensitive if all lowercase opt.smartcase = true -- No ignore case when pattern has uppercase opt.syntax = "enable" -- Enables syntax highlighing opt.wrap = false -- Display long lines as just one line opt.foldlevel = 99 opt.foldlevelstart = 99 -- Minimum number of screen line below and above the cursor opt.foldenable = true opt.colorcolumn = "79" opt.termguicolors = true -- Set colorscheme opt.scrolloff = 99 -- Minimum number of line above and below the cursor line opt.timeoutlen = 200 -- Shorten key sequence timeout opt.clipboard = "unnamedplus" -- Copy paste between vim and everything else -- Splits opt.splitbelow = true opt.splitright = true opt.tabstop = 2 -- Number of spaces that in files uses opt.shiftwidth = 2 -- Number of spaces to use fir (auto)indent step opt.expandtab = true -- Use spaces when is inserted opt.autoindent = true -- Take indent for new line from previous line opt.wrap = true opt.fixeol = false opt.number = true -- Print the line number in front of each line opt.cursorline = true -- Highligh the screen line of the cursor opt.signcolumn = "yes" -- Always display signcolumn opt.wildignore = opt.wildignore + "*.o,*.gcno,*.gcda" -- Files matching these patterns are not completed -- set relative number opt.relativenumber = true vim.o.shell = "/usr/bin/env bash" vim.o.cmdheight = 1 vim.o.laststatus = 0 -- vim.o.mouse = vim.o.mouse .. "a" vim.o.mouse = "" -- vim.o.equalalways = false -- splitted windows are not always the same size