We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6fce314 + 995ab8c commit 1f8c36bCopy full SHA for 1f8c36b
autoload/vimlparser.vim
@@ -739,7 +739,7 @@ function! s:VimLParser.parse_command()
739
let self.ea.forceit = 0
740
endif
741
742
- if self.ea.cmd.flags !~# '\<BANG\>' && self.ea.forceit
+ if self.ea.cmd.flags !~# '\<BANG\>' && self.ea.forceit && self.ea.cmd.flags !~# 'USERCMD'
743
throw s:Err('E477: No ! allowed', self.ea.cmdpos)
744
745
test/test_command.ok
@@ -0,0 +1,5 @@
1
+; test_command
2
+(excmd "normal! gg")
3
+(excmd "normal gg")
4
+(excmd "Usercmd x, y z 123")
5
+(excmd "Usercmd! with bang")
test/test_command.vim
+" test_command
+normal! gg
+normal gg
+Usercmd x, y z 123
+Usercmd! with bang
0 commit comments