local set = vim.opt set.mouse = 'a' set.encoding = 'utf-8' set.fileencoding = 'UTF-8' set.number = true set.relativenumber = true set.showcmd = true vim.o.syntax = true set.ignorecase = true set.smartcase = true set.cursorline = true -- bold line number at cursor vim.cmd [[ highlight CursorLineNr cterm=bold ]] set.linebreak = true -- special characters set.list = true set.listchars = 'tab:→ ,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨' set.tabstop = 4 set.shiftwidth = 4 vim.o.expandtab = false vim.o.smartindent = true set.swapfile = false -- spellcheck (enable with `set spell`) vim.o.spelllang = 'cs,en_gb' vim.cmd [[ hi SpellBad cterm=bold ctermbg=red ctermfg=white ]] -- cursor padding from top and bottom vim.o.scrolloff = 5 -- better navigation in split windows vim.keymap.set('n', '', 'h') vim.keymap.set('n', '', 'j') vim.keymap.set('n', '', 'k') vim.keymap.set('n', '', 'l') -- colorscheme vim.cmd [[ color base16-default-dark ]]