aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2022-11-02 22:42:37 +0200
committersrdusr <trevorgray@srdusr.com>2022-11-02 22:42:37 +0200
commit4fce5f766d98a88d7667ad916ee6c37bd3c1e2af (patch)
tree5cc7db5bef3cb5cc617e110300157edc45eacb2c
parent24e291680e6af8bb9c4fa8debe3900a9012d0322 (diff)
downloaddotfiles-4fce5f766d98a88d7667ad916ee6c37bd3c1e2af.tar.gz
dotfiles-4fce5f766d98a88d7667ad916ee6c37bd3c1e2af.zip
Recording macros is now faster
-rw-r--r--lua/user/keys.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/lua/user/keys.lua b/lua/user/keys.lua
index 8beb6d3..43984c1 100644
--- a/lua/user/keys.lua
+++ b/lua/user/keys.lua
@@ -61,6 +61,16 @@ map("n", "<leader>m", ":messages<CR>")
-- select last change
--nnoremap gV `[v`]
+--map("n", "<esc>", function()
+-- notify.dismiss()
+-- vim.cmd.noh()
+--end)
+
+--"nnore fast [e]dit and [s]ourcing .[v]imrc
+--nnoremap <leader>ev :edit $MYVIMRC<CR>
+--"fast macro
+--nnoremap @ <cmd>set lazyredraw <bar> execute 'noautocmd norm! ' . v:count1 . '@' . getcharstr() <bar> set nolazyredraw<cr>
+--xnoremap @ :<C-U>set lazyredraw <bar> execute "noautocmd '<,'>norm! " . v:count1 . "@" . getcharstr()<bar> set nolazyredraw<cr>
--map("n", "<leader><CR>", ":runtime! /lua/plugins/*.lua<CR> | :runtime! /lua/user/*.lua<CR> | :luafile ~/.config/nvim/init.lua<CR>", print ("Nvim reloaded"))
--map("n", "<leader><CR>", ":lua require('init').unload_lua_namespace()<CR>", print ("Nvim reloaded"))