I wanted a quick way to delete all the lines in a buffer, so I added this to my .vimrc
if !exists(“:Dall”)
command Dall ggdG
endif
However, when I try to run it, I get an error that “ggdG” is not an editor command.
What is the mistake I am making?
existstest will not be valid. You should use regular ASCII double-quote (").