-- Filetypes and compatibility vim.opt.compatible = false vim.cmd("filetype on") vim.cmd("filetype plugin on") vim.cmd("syntax on") -- Editor configuration vim.opt.number = true vim.opt.tabstop = 4 vim.opt.shiftwidth = 4 vim.opt.expandtab = true vim.opt.splitright = true vim.opt.splitbelow = true vim.g.mapleader = "," -- GUI vim.opt.cursorline = true vim.opt.hlsearch = true vim.opt.encoding = "UTF-8" vim.g.tex_flavor = "latex" vim.opt.conceallevel = 2 vim.opt.showmatch = true -- set color scheme vim.opt.termguicolors = true vim.opt.mouse = "" vim.keymap.set("n", "ll", ":set nonumber") vim.keymap.set("n", "lm", ":set number")