Skip to content

Commit

Permalink
vim: Add JoinParagraphs command (commit msg → PR markdown)
Browse files Browse the repository at this point in the history
  • Loading branch information
liskin committed Aug 20, 2024
1 parent c6c770a commit fbb45a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .vim/plugin/liskin_commands.vim
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,8 @@ command! -nargs=? GeneratePassword call s:GeneratePassword("LCN", <f-args>)
command! -nargs=? GeneratePasswordSpecial call s:GeneratePassword("LCNS", <f-args>)
command! -nargs=? GeneratePasswordXKCD call s:GeneratePasswordXKCD(<f-args>)

" {{{1 JoinParagraphs

command! -range=% JoinParagraphs <line1>,<line2>g/^./ .,/^$/-1 join | noh

" vim:set foldenable foldmethod=marker: {{{1

0 comments on commit fbb45a6

Please sign in to comment.