From fbb45a6651e5bdff91fd7b4fe950878e165a80ac Mon Sep 17 00:00:00 2001 From: Tomas Janousek Date: Wed, 21 Aug 2024 00:49:08 +0100 Subject: [PATCH] =?UTF-8?q?vim:=20Add=20JoinParagraphs=20command=20(commit?= =?UTF-8?q?=20msg=20=E2=86=92=20PR=20markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vim/plugin/liskin_commands.vim | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vim/plugin/liskin_commands.vim b/.vim/plugin/liskin_commands.vim index 1fe63ebd..587cecfe 100644 --- a/.vim/plugin/liskin_commands.vim +++ b/.vim/plugin/liskin_commands.vim @@ -85,4 +85,8 @@ command! -nargs=? GeneratePassword call s:GeneratePassword("LCN", ) command! -nargs=? GeneratePasswordSpecial call s:GeneratePassword("LCNS", ) command! -nargs=? GeneratePasswordXKCD call s:GeneratePasswordXKCD() +" {{{1 JoinParagraphs + +command! -range=% JoinParagraphs ,g/^./ .,/^$/-1 join | noh + " vim:set foldenable foldmethod=marker: {{{1