diff options
author | Ben Sima <ben@bsima.me> | 2020-06-18 14:55:51 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-06-18 14:55:51 -0700 |
commit | 22b5d8088eb955a3f7373cb29fb3fdbc25c27401 (patch) | |
tree | 881e86ec0f2ec9592c80e6eb2534fad18c06e17e /lib/vimrc | |
parent | b05aea790c1240a7432d712efc5977dec2b75c93 (diff) |
vim: format haskell code
Diffstat (limited to 'lib/vimrc')
-rw-r--r-- | lib/vimrc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -58,6 +58,9 @@ nmap <silent> ,D :r !date +\%Y.\%m.\%d..\%H.\%M.\%S<cr> " grep (ripgrep) nmap ,g :Rg +" format haskell code +nmap ,f :!ormolu -m inplace %<cr> + " clear out trailing whitespace and lines ending in whitespace nmap <silent> ,w :%s/[\t ]\+$//e<cr> |