dotfiles

personal dotfiles
git clone anongit@rnpnr.xyz:dotfiles.git
Log | Files | Refs | Feed | Submodules

Commit: 5894e1abf4b2e99197756e8936112fa42135f67d
Parent: 7a9096efef5dda25e4aeea4b4f827a0a231228fa
Author: Randy Palamar
Date:   Sat, 27 Apr 2024 19:15:16 -0600

vis: update some keybinds

Diffstat:
M.config/vis/macros.lua | 12++++++------
M.config/vis/visrc.lua | 2++
2 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/.config/vis/macros.lua b/.config/vis/macros.lua @@ -38,15 +38,15 @@ local function macros(win) local lang = {} lang["latex"] = { - { m.NORMAL, "\\al", fc({ lenv("align*"), fk("O") }) }, - { m.NORMAL, "\\ca", fc({ lenv("cases"), fk("O") }) }, - { m.NORMAL, "\\cb", fc({ lenv("center", "\\colorboxed{blue}{\n}"), fk("kO") }) }, + { m.NORMAL, "\\al", fc({ lenv("align*"), fk("O\t") }) }, + { m.NORMAL, "\\ca", fc({ lenv("cases"), fk("O\t") }) }, + { m.NORMAL, "\\cb", fc({ lenv("center", "\\colorboxed{blue}{\n}"), fk("kO\t") }) }, { m.NORMAL, "\\en", fc({ lenv("enumerate","\n\\item \n"), fk("kkA") }) }, - { m.NORMAL, "\\eq", fc({ lenv("equation*"), fk("O") }) }, + { m.NORMAL, "\\eq", fc({ lenv("equation*"), fk("O\t") }) }, { m.NORMAL, "\\fi", fc({ lenv("figure", "\t\\includegraphics[width=\\textwidth]{}"), fk("k$hi") }) }, { m.NORMAL, "\\it", fc({ lenv("itemize", "\n\\item \n"), fk("kkA") }) }, - { m.NORMAL, "\\mi", fc({ ins("\\begin{minipage}[c]{0.49\\textwidth}\n\\end{minipage}\\hfill"), fk("O") }) }, - { m.NORMAL, "\\ne", fc({ lenv("equation"), fk("O") }) }, + { m.NORMAL, "\\mi", fc({ ins("\\begin{minipage}[c]{0.49\\textwidth}\n\\end{minipage}\\hfill"), fk("O\t") }) }, + { m.NORMAL, "\\ne", fc({ lenv("equation"), fk("O\t") }) }, { m.NORMAL, "\\se", fc({ ins("\\section{}"), fk("hi") }) }, { m.NORMAL, "\\su", fc({ ins("\\subsection{}"), fk("hi") }) }, { m.VISUAL, "\\bf", sur("\\textbf{", "}", true) }, diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua @@ -39,6 +39,8 @@ vis.events.subscribe(vis.events.INIT, function() local m, cmd = vis.modes, util.command vis:map(m.NORMAL, " f", "v$:|furigana<Enter><Escape>") + vis:map(m.NORMAL, " j", "<vis-window-next>") + vis:map(m.NORMAL, " k", "<vis-window-prev>") vis:map(m.NORMAL, "gq", "vip=<Escape>") vis:map(m.VISUAL, " s", cmd("|sort"))