Sat, 25 Feb 2023 13:01:43 -0500
Make autoread more reliable
1014 | 1 | vim.g.mapleader = "\\" |
2 | vim.g.maplocalleader = "\\" | |
3 | ||
4 | local o = vim.opt | |
5 | ||
6 | -- Editing | |
7 | o.expandtab = true | |
8 | o.shiftround = true | |
9 | o.shiftwidth = 2 | |
10 | ||
11 | -- Display | |
12 | o.breakindent = true | |
13 | o.breakindentopt = "min:66,shift:2" | |
1026 | 14 | o.conceallevel = 3 |
1014 | 15 | o.diffopt:append("algorithm:patience") |
16 | o.fillchars = "fold: ,vert:│" | |
17 | o.linebreak = true | |
18 | o.listchars = "tab:⇥·,trail:◼,nbsp:◻,extends:»,precedes:«" | |
1039
91900ecf0e8c
Add gui (fvim) settings
Meredith Howard <mhoward@roomag.org>
parents:
1026
diff
changeset
|
19 | o.number = false |
1026 | 20 | o.pumheight = 10 |
1014 | 21 | o.showbreak = "» " |
22 | o.termguicolors = true | |
23 | o.signcolumn = "number" | |
1026 | 24 | o.winminwidth = 5 |
1014 | 25 | |
26 | -- Behavior | |
27 | o.autowriteall = true | |
1015 | 28 | o.backup = true |
29 | o.completeopt:append({"menuone", "noselect"}) | |
1025 | 30 | o.hidden = false |
1014 | 31 | o.ignorecase = true |
32 | o.scrolloff = 15 | |
1015 | 33 | o.sessionoptions = {"buffers", "curdir", "localoptions"} |
1014 | 34 | o.sidescrolloff = 10 |
35 | o.smartcase = true | |
36 | o.splitbelow = true | |
37 | o.splitright = true | |
1015 | 38 | o.undofile = true |
1014 | 39 | o.wildignorecase = true |
40 | ||
41 | -- Paths | |
1019 | 42 | o.backupdir:remove(".") |
1015 | 43 | o.tags:append({".tags", "./.tags;"}) |
1014 | 44 | o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" |
45 | ||
1015 | 46 | if vim.fn.executable("ag") then |
47 | o.grepprg = "ag --vimgrep" | |
1026 | 48 | o.grepformat = {"%f:%l:%c:%m", "%f"} |
1015 | 49 | end |