local g = vim.g local o = vim.o -- Amount of lines to keep below and above the cursor o.scrolloff = 10 -- I like it this way o.number = true o.cursorline = true o.relativenumber = true o.numberwidth = 4 o.signcolumn = "yes:1" o.shortmess = o.shortmess .. "c" o.completeopt = "menuone,noselect,noinsert" o.hidden = true o.backup = false o.undofile = true o.swapfile = false o.writebackup = false o.encoding = "utf-8" o.guicursor = "a:ver25-blinkwait50-blinkon50-blinkoff50" o.ruler = true o.showcmd = true o.showmode = true o.laststatus = 2 o.smarttab = true o.expandtab = true o.autoindent = true o.softtabstop = -1 o.shiftwidth = 2 o.tabstop = 2 -- Search is case insensitive unless /C or searched capitalized o.hlsearch = true o.incsearch = true o.smartcase = true o.ignorecase = true -- Invisible characters o.list = true o.listchars = "trail:·,nbsp:×,tab:->" -- Clipboard works with os o.clipboard = "unnamedplus" -- Map leader to space g.mapleader = " " g.maplocalleader = " "