aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2019-06-11 11:50:21 +1200
committerTom Ryder <tom@sanctum.geek.nz>2019-06-11 11:50:21 +1200
commit448423e4f8237f7ed3bace88327f1a6422584b04 (patch)
treebde2ef0eef9c2aa27160c4d468e238539c58888d /vim/vimrc
parentMention the sources of a few mapping commands (diff)
downloaddotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.tar.gz
dotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.zip
Allow -bar in custom commands
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index e0baed6c..94af80f6 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -142,7 +142,7 @@ function! s:ReloadFileType() abort
doautocmd filetypedetect BufRead
endif
endfunction
-command! ReloadFileType
+command! -bar ReloadFileType
\ call s:ReloadFileType()
" We'll also define a :ReloadVimrc command. This may seem like overkill at
@@ -162,7 +162,7 @@ command! ReloadFileType
" from running the :source command with a :noautocmd wrapper. This is
" a defensive measure to avoid infinite recursion.
"
-command! ReloadVimrc
+command! -bar ReloadVimrc
\ noautocmd source $MYVIMRC | ReloadFileType
" Reset and define a group of automatic command hooks specific to matters
@@ -222,7 +222,7 @@ endfunction
" names as candidates, and specify that there must be only one argument, which
" we'll provide as a quoted parameter to the function.
"
-command! -complete=dir -nargs=1 Establish
+command! -bar -complete=dir -nargs=1 Establish
\ call s:Establish(<q-args>)
" Now that we have a clean means to create directories if they don't already