From 5236893e5e340d289f0c010799021337246db696 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sun, 1 Aug 2021 09:55:28 +0530 Subject: [PATCH] add permanent undo (#197) --- lua/options.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/options.lua b/lua/options.lua index a8ad934a..26ca92a2 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,6 +1,7 @@ local opt = vim.opt local g = vim.g +opt.undofile = true opt.ruler = false opt.hidden = true opt.ignorecase = true @@ -64,5 +65,10 @@ for _, plugin in pairs(disabled_built_ins) do vim.g["loaded_" .. plugin] = 1 end +-- Opening a file from its last left off position +--vim.cmd( +-- [[au BufReadPost * if expand('%:p') !~# '\m/\.git/' && line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif]] +--) + -- file extension specific tabbing -- vim.cmd([[autocmd Filetype python setlocal expandtab tabstop=4 shiftwidth=4 softtabstop=4]])