aboutsummaryrefslogtreecommitdiff
path: root/lua/user
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-01-28 15:45:40 +0200
committersrdusr <trevorgray@srdusr.com>2023-01-28 15:45:40 +0200
commit46a341402c26156cebeb13329df4bd9db2fa44b2 (patch)
tree098f4f591571f127e302ca09a600adb903b25eda /lua/user
parentb929bdf9a36df09c1900d2dd56bf61e2f45679fa (diff)
downloaddotfiles-46a341402c26156cebeb13329df4bd9db2fa44b2.tar.gz
dotfiles-46a341402c26156cebeb13329df4bd9db2fa44b2.zip
Set re=0 option to fix exceeding redraw limit
Diffstat (limited to 'lua/user')
-rw-r--r--lua/user/opts.lua19
1 files changed, 10 insertions, 9 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua
index ce12c8c..13e9c1c 100644
--- a/lua/user/opts.lua
+++ b/lua/user/opts.lua
@@ -18,6 +18,7 @@ vim.cmd([[
-- Fast macros without lazyredraw
vim.cmd([[
+ set re=0
nnoremap @ <cmd>execute "noautocmd norm! " . v:count1 . "@" . getcharstr()<cr>
xnoremap @ :<C-U>execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr()<cr>
]])
@@ -237,12 +238,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
+--]])