From dc0e302e8601736643f86dc49445181587ab75a7 Mon Sep 17 00:00:00 2001 From: Jonathan Bernard Date: Thu, 31 Oct 2019 02:49:43 -0500 Subject: [PATCH] Add vim command to trim whitespace from line endings. --- .vimrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.vimrc b/.vimrc index 4df617c..54a5533 100644 --- a/.vimrc +++ b/.vimrc @@ -84,4 +84,8 @@ nmap ws :w:silent !git add %:!git commit nmap b :CtrlPBuffer +" Format Bible quotes in Markdown (bold verse numbers) vmap qb :s/\v\s+(\d+)\s+/ **\1** /g + +" remove trailing whitespace from all lines +nmap ss :%s/\s\+$//