--Sets automatic update of the file internals vim.api.nvim_exec([[ autocmd FocusGained,BufEnter,BufWinEnter,WinEnter,CursorHold,CursorHoldI * checktime autocmd FileChangedShellPost * echohl WarningMsg | echo "File changed on disk. Buffer reloaded." | echohl None | checktime ]],{}) vim.api.nvim_exec([[set shortmess=I]],{}) vim.opt.termguicolors = true vim.opt.splitbelow = true vim.opt.splitright = true vim.opt.relativenumber = true vim.opt.number = true vim.opt.tabstop = 4 vim.opt.softtabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.swapfile = false vim.opt.backup = false vim.opt.undodir = os.getenv("HOME").."/.vim/undodir" vim.opt.undofile = true vim.opt.hlsearch = false vim.opt.incsearch = true vim.opt.scrolloff = 999 vim.opt.updatetime = 50 vim.opt.wrap = true vim.opt.virtualedit = "block" vim.opt.inccommand = "split" vim.opt.ignorecase = true vim.cmd[[set laststatus=2]]