diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-03-03 14:46:23 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-03-03 14:46:23 +0200 |
| commit | c6ccab7f680f4a873d996cd9e535752e9a82c8ac (patch) | |
| tree | 05a202158386d5eeb011253204e742164343066d /lua/user/opts.lua | |
| parent | fcc4a111f55e6ee14cd0b4e25fd8f851172f96b9 (diff) | |
| download | dotfiles-c6ccab7f680f4a873d996cd9e535752e9a82c8ac.tar.gz dotfiles-c6ccab7f680f4a873d996cd9e535752e9a82c8ac.zip | |
Re-enabled auto command to return to same line when reopening
Diffstat (limited to 'lua/user/opts.lua')
| -rw-r--r-- | lua/user/opts.lua | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua index c1b5027..2bbf776 100644 --- a/lua/user/opts.lua +++ b/lua/user/opts.lua @@ -248,12 +248,12 @@ vim.cmd([[ " Only show in insert mode ]]) -- Line Return ---vim.cmd([[ " Return to the same line when we reopen a file --- augroup line_return --- au! --- au BufReadPost * --- \ if line("'\"") > 0 && line("'\"") <= line("$") | --- \ execute 'normal! g`"zvzz' | --- \ endif --- augroup END ---]]) +vim.cmd([[ " Return to the same line when we reopen a file + augroup line_return + au! + au BufReadPost * + \ if line("'\"") > 0 && line("'\"") <= line("$") | + \ execute 'normal! g`"zvzz' | + \ endif + augroup END +]]) |
