vim.opt.backspace = "indent,eol,start" vim.opt.lazyredraw = true vim.opt.number = true vim.opt.relativenumber = true vim.opt.scrolloff = 8 vim.opt.showmatch = true vim.opt.expandtab = true vim.opt.tabstop = 4 vim.opt.softtabstop = 4 -- deletes 4 spacesj vim.opt.shiftwidth = 4 vim.opt.pastetoggle = "" vim.opt.termguicolors = true vim.opt.encoding = "utf-8" vim.opt.modeline = true vim.opt.history = 50 vim.opt.errorbells = false vim.opt.visualbell = false vim.opt.hidden = true vim.opt.joinspaces = false vim.opt.nrformats = "" vim.opt.mouse = "a" vim.opt.undofile = true vim.opt.wildmode = "longest:full" vim.opt.wildmenu = true vim.opt.wildignore = "*.pdf,*.fo," vim.opt.title = true vim.opt.ruler = true vim.opt.showmode = true vim.opt.showcmd = true vim.opt.laststatus = 2 vim.opt.hlsearch = true vim.opt.incsearch = true vim.opt.ignorecase = true vim.opt.smartcase = true vim.opt.background = "dark" vim.opt.autoindent = true vim.opt.listchars.tab = "→\\ " vim.opt.listchars.trail = "·" vim.opt.cursorline = true vim.opt.signcolumn = "yes" vim.opt.colorcolumn = "80" vim.cmd [[ let g:qs_highlight_on_keys = ['f', 'F', 't', 'T'] augroup qs_colors autocmd! autocmd ColorScheme * highlight QuickScopePrimary guifg='#afff5f' gui=underline ctermfg=155 cterm=underline autocmd ColorScheme * highlight QuickScopeSecondary guifg='#5fffff' gui=underline ctermfg=81 cterm=underline augroup END ]] vim.cmd [[ augroup jumplast autocmd BufReadPost * \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' \ | exe "normal! g`\"" \ | endif augroup END ]]