diff options
author | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
---|---|---|
committer | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
commit | 0f8c62f2d18fd86e2bad01a33e5e9beb4e2ef77b (patch) | |
tree | e098cecfe770af08bd77eda320f8a0260c3c68c6 /lua/vim_behavior.lua |
first commit
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" +}) |