diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 11:50:21 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2019-06-11 11:50:21 +1200 |
commit | 448423e4f8237f7ed3bace88327f1a6422584b04 (patch) | |
tree | bde2ef0eef9c2aa27160c4d468e238539c58888d /vim/vimrc | |
parent | Mention the sources of a few mapping commands (diff) | |
download | dotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.tar.gz dotfiles-448423e4f8237f7ed3bace88327f1a6422584b04.zip |
Allow -bar in custom commands
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |