24 o.winminwidth = 5 |
24 o.winminwidth = 5 |
25 |
25 |
26 -- Behavior |
26 -- Behavior |
27 o.autowriteall = true |
27 o.autowriteall = true |
28 o.backup = true |
28 o.backup = true |
29 o.completeopt = {"menu", "menuone", "noselect"} |
29 o.completeopt = { "menu", "menuone", "noselect" } |
30 o.hidden = false |
30 o.hidden = false |
31 o.ignorecase = true |
31 o.ignorecase = true |
32 o.scrolloff = 15 |
32 o.scrolloff = 15 |
33 o.sessionoptions = {"buffers", "curdir", "localoptions"} |
33 o.sessionoptions = { "buffers", "curdir", "localoptions" } |
34 o.sidescrolloff = 10 |
34 o.sidescrolloff = 10 |
35 o.smartcase = true |
35 o.smartcase = true |
36 o.splitbelow = true |
36 o.splitbelow = true |
37 o.splitright = true |
37 o.splitright = true |
38 o.undofile = true |
38 o.undofile = true |
39 o.wildignorecase = true |
39 o.wildignorecase = true |
40 |
40 |
41 -- Paths |
41 -- Paths |
42 o.backupdir:remove(".") |
42 o.backupdir:remove(".") |
43 o.tags:append({".tags", "./.tags;"}) |
43 o.tags:append({ ".tags", "./.tags;" }) |
44 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" |
44 o.wildignore = "*~,*.o,*.pyc,.git/*,hg/*,.svn/*" |
45 |
45 |
46 if vim.fn.executable("ag") then |
46 if vim.fn.executable("ag") then |
47 o.grepprg = "ag --vimgrep" |
47 o.grepprg = "ag --vimgrep" |
48 o.grepformat = {"%f:%l:%c:%m", "%f"} |
48 o.grepformat = { "%f:%l:%c:%m", "%f" } |
49 end |
49 end |