commit a0f6a5e04dbbc6f0fe10cc532889a5c545398325
parent 35eb84867cbfd04049ca153d3d79d5b2d4dd8f9f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date: Fri, 18 Jan 2019 01:00:40 +0100
Dos2unix command to get rid of the ^Ms
Former-commit-id: 82e41d07dcfd09061e73851b6e3bbbbb6f9518f1
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/vim/commands.vimrc b/vim/commands.vimrc
@@ -15,6 +15,7 @@ command! Hexedit %!xxd
command! Unhex %!xxd -r
command! JsonSimplifyObject %s/^\(\s\{16}\){\n\s\{20\}\(.*\)\n\s\{16\}}\(,\?\)/\1{\2}\3
command! BeautifyJson %!python -m json.tool
+command! Dos2unix .!dos2unix "%"
command! -nargs=1 -complete=command Redir silent call Redir(<f-args>)
" Usage:
" :Redir hi ............. show the full output of command ':hi' in a scratch window