From 333e88bdebc93a0c5a0dc10fcc88dca00bb2f31b Mon Sep 17 00:00:00 2001 From: Chiel92 Date: Sun, 2 Dec 2012 15:27:50 +0100 Subject: [PATCH] command added --- plugin/autoformat.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugin/autoformat.vim b/plugin/autoformat.vim index 3e1b90a..ea4b3c4 100644 --- a/plugin/autoformat.vim +++ b/plugin/autoformat.vim @@ -1,5 +1,5 @@ "Function for formatting the entire buffer -function! g:Autoformat() +function! s:Autoformat() "If a formatprg is specified if &formatprg!="" "echo "formatprg is: ".&formatprg @@ -13,3 +13,6 @@ function! g:Autoformat() echo "No formatter installed for this filetype" endif endfunction + +"Create a command for this +command Autoformat call s:Autoformat()