diff options
Diffstat (limited to 'lua/vim_behavior.lua')
-rw-r--r-- | lua/vim_behavior.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/vim_behavior.lua b/lua/vim_behavior.lua new file mode 100644 index 0000000..026c5c2 --- /dev/null +++ b/lua/vim_behavior.lua @@ -0,0 +1,6 @@ +local autocmd = vim.api.nvim_create_autocmd + +-- Restore cursor position. +autocmd("BufReadPost", +{pattern="*" , command="silent! normal! g`\"zv" +}) |