mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 11:29:56 -06:00
nvim - add keybinding to clear terminal scrollback
This commit is contained in:
@@ -81,6 +81,13 @@
|
|||||||
; Trim trailing Whitespace in current line
|
; Trim trailing Whitespace in current line
|
||||||
(util.lnnoremap :tw "<C-U>.s/\\s\\+$//ge<CR>:nohlsearch<Enter>/<BS>")
|
(util.lnnoremap :tw "<C-U>.s/\\s\\+$//ge<CR>:nohlsearch<Enter>/<BS>")
|
||||||
|
|
||||||
|
|
||||||
|
;; <Leader><C-l> in terminal to clear scrollback buffer
|
||||||
|
;; nmap <silent> <leader><C-l> :set scrollback=1 \| set scrollback=100000<cr>
|
||||||
|
(util.lnnoremap :<C-k> ":set scrollback=1 | :set scrollback 100000<cr>" {:silent true})
|
||||||
|
;; tmap <silent> <leader><C-l> <C-\><C-n><leader><C-l>i
|
||||||
|
(util.ltnoremap :<C-k> "<C-\\><C-n><leader><C-l>i" {:silent true})
|
||||||
|
|
||||||
;; (noremap :n :<C-A-l> ":echo \"test\"\n")
|
;; (noremap :n :<C-A-l> ":echo \"test\"\n")
|
||||||
; Window switching
|
; Window switching
|
||||||
; ˙ -> alt-h
|
; ˙ -> alt-h
|
||||||
|
|||||||
@@ -18,4 +18,6 @@
|
|||||||
|
|
||||||
(defn lnnoremap [from to] (nnoremap (.. :<leader> from) to))
|
(defn lnnoremap [from to] (nnoremap (.. :<leader> from) to))
|
||||||
|
|
||||||
(defn lvnoremap [from to opts] (noremap :v (.. :<leader> from) to opts))
|
(defn ltnoremap [from to opts] (noremap :v (.. :<leader> from) to opts))
|
||||||
|
|
||||||
|
(defn lvnoremap [from to opts] (noremap :t (.. :<leader> from) to opts))
|
||||||
|
|||||||
Reference in New Issue
Block a user