From 67caa1c8f8fd8942fd1493477ede48cf19b02b93 Mon Sep 17 00:00:00 2001 From: tdro Date: Tue, 25 Oct 2022 02:54:45 -0400 Subject: .vim/vimrc: Dump command to buffer --- .vim/vimrc | 3 +++ 1 file changed, 3 insertions(+) (limited to '.vim') diff --git a/.vim/vimrc b/.vim/vimrc index 5adff47..761bcdc 100644 --- a/.vim/vimrc +++ b/.vim/vimrc @@ -146,6 +146,9 @@ nmap ra :set all& \| :source ~/.vim/vimrc \| :packloadall \|:e:Notif " Remove trailing whitespace nmap rs :%s/\s\+$//e +" Dump output of command to new buffer +nmap rr :enew \| .! + " Remove duplicate lines vnoremap rd !awk '\!visited[$0]++' -- cgit v1.2.3