diff --git a/nvim/.config/nvim/fnl/dotfiles/mapping.fnl b/nvim/.config/nvim/fnl/dotfiles/mapping.fnl index 868d34e..7ebfb10 100644 --- a/nvim/.config/nvim/fnl/dotfiles/mapping.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/mapping.fnl @@ -81,6 +81,13 @@ ; Trim trailing Whitespace in current line (util.lnnoremap :tw ".s/\\s\\+$//ge:nohlsearch/") + +;; in terminal to clear scrollback buffer +;; nmap :set scrollback=1 \| set scrollback=100000 +(util.lnnoremap : ":set scrollback=1 | :set scrollback 100000" {:silent true}) +;; tmap i +(util.ltnoremap : "i" {:silent true}) + ;; (noremap :n : ":echo \"test\"\n") ; Window switching ; ˙ -> alt-h diff --git a/nvim/.config/nvim/fnl/dotfiles/util.fnl b/nvim/.config/nvim/fnl/dotfiles/util.fnl index 2a176ea..f85b7e5 100644 --- a/nvim/.config/nvim/fnl/dotfiles/util.fnl +++ b/nvim/.config/nvim/fnl/dotfiles/util.fnl @@ -18,4 +18,6 @@ (defn lnnoremap [from to] (nnoremap (.. : from) to)) -(defn lvnoremap [from to opts] (noremap :v (.. : from) to opts)) +(defn ltnoremap [from to opts] (noremap :v (.. : from) to opts)) + +(defn lvnoremap [from to opts] (noremap :t (.. : from) to opts))