| 1 |
-- OPTIONS
|
| 2 |
local set = vim.opt
|
| 3 |
|
| 4 |
--line nums
|
| 5 |
set.relativenumber = true
|
| 6 |
set.number = true
|
| 7 |
|
| 8 |
-- indentation and tabs
|
| 9 |
set.tabstop = 4
|
| 10 |
set.shiftwidth = 4
|
| 11 |
set.autoindent = true
|
| 12 |
set.expandtab = true
|
| 13 |
|
| 14 |
-- search settings
|
| 15 |
set.ignorecase = true
|
| 16 |
set.smartcase = true
|
| 17 |
|
| 18 |
-- appearance
|
| 19 |
set.termguicolors = true
|
| 20 |
set.background = "dark"
|
| 21 |
set.signcolumn = "yes"
|
| 22 |
|
| 23 |
-- cursor line
|
| 24 |
set.cursorline = true
|
| 25 |
|
| 26 |
-- 80th column
|
| 27 |
set.colorcolumn = "80"
|
| 28 |
|
| 29 |
-- clipboard
|
| 30 |
set.clipboard:append("unnamedplus")
|
| 31 |
|
| 32 |
-- backspace
|
| 33 |
set.backspace = "indent,eol,start"
|
| 34 |
|
| 35 |
-- split windows
|
| 36 |
set.splitbelow = true
|
| 37 |
set.splitright = true
|
| 38 |
|
| 39 |
-- dw/diw/ciw works on full-word
|
| 40 |
set.iskeyword:append("-")
|
| 41 |
|
| 42 |
-- keep cursor at least 8 rows from top/bot
|
| 43 |
set.scrolloff = 8
|
| 44 |
|
| 45 |
-- undo dir settings
|
| 46 |
set.swapfile = false
|
| 47 |
set.backup = false
|
| 48 |
set.undodir = os.getenv("HOME") .. "/.vim/undodir"
|
| 49 |
set.undofile = true
|
| 50 |
|
| 51 |
-- incremental search
|
| 52 |
set.incsearch = true
|
| 53 |
|
| 54 |
-- faster cursor hold
|
| 55 |
set.updatetime = 50
|