Enable backup and swapfile
parent
5d6dd88db4
commit
84d61aa1d2
|
@ -1,11 +1,11 @@
|
||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
|
-- Not needed?
|
||||||
opt.wildignore = "__pycache__"
|
opt.wildignore = "__pycache__"
|
||||||
opt.wildignore = opt.wildignore + { "*.o", "*~", "*.pyc", "*pycache*" }
|
opt.wildignore = opt.wildignore + { "*.o", "*~", "*.pyc", "*pycache*" }
|
||||||
|
|
||||||
-- Indentation config
|
-- Indentation config
|
||||||
opt.tabstop = 2
|
opt.tabstop = 2
|
||||||
opt.tabstop = 2
|
|
||||||
opt.shiftwidth = 2
|
opt.shiftwidth = 2
|
||||||
opt.autoindent = true
|
opt.autoindent = true
|
||||||
|
|
||||||
|
@ -16,11 +16,9 @@ opt.relativenumber = true
|
||||||
-- Misc
|
-- Misc
|
||||||
opt.backspace = "indent,eol,start" -- Allow backspacing over everything in insert mode
|
opt.backspace = "indent,eol,start" -- Allow backspacing over everything in insert mode
|
||||||
opt.ttimeoutlen = 50
|
opt.ttimeoutlen = 50
|
||||||
opt.backup = false -- do not keep a backup file, use versions instead
|
|
||||||
opt.history = 50 -- Keep 50 lines of command line history
|
opt.history = 50 -- Keep 50 lines of command line history
|
||||||
opt.ruler = true -- Show the cursor position all the time
|
opt.ruler = true -- Show the cursor position all the time
|
||||||
opt.laststatus = 2 -- Always display the status line
|
opt.laststatus = 2 -- Always display the status line
|
||||||
opt.swapfile = false -- Disable swapfile
|
|
||||||
opt.undofile = true -- Enable undofile (auto supported in NeoVim)
|
opt.undofile = true -- Enable undofile (auto supported in NeoVim)
|
||||||
opt.showcmd = true -- Display incomplete commands
|
opt.showcmd = true -- Display incomplete commands
|
||||||
opt.incsearch = true -- Do incremental searching
|
opt.incsearch = true -- Do incremental searching
|
||||||
|
|
Loading…
Reference in New Issue