summaryrefslogtreecommitdiff
path: root/lib/vimrc
diff options
context:
space:
mode:
Diffstat (limited to 'lib/vimrc')
-rw-r--r--lib/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/vimrc b/lib/vimrc
index 8dacb0a..99d006d 100644
--- a/lib/vimrc
+++ b/lib/vimrc
@@ -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>