From c6ccab7f680f4a873d996cd9e535752e9a82c8ac Mon Sep 17 00:00:00 2001 From: srdusr Date: Fri, 3 Mar 2023 14:46:23 +0200 Subject: Re-enabled auto command to return to same line when reopening --- lua/user/opts.lua | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'lua') 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 +]]) -- cgit v1.2.3