venantius / vim-cljfmt

A Vim plugin for cljfmt, the Clojure formatting tool.
152 stars 22 forks source link

E492: Not an editor command: CljfmtRange #47

Open sushovannits opened 4 years ago

sushovannits commented 4 years ago

Hi Great plugin. I am using neovim I keep getting this: E492: Not an editor command: CljfmtRange when trying to use the range command

sushovannits commented 4 years ago

Removing the -buffer makes it work. Sorry for my ignorance in vim script I am not sure why the buffer option is required:

command! -buffer -bang -range=0 -nargs=* CljfmtRange :exe s:CljfmtRange(<bang>0, <line1>, <line2>, <count>, <q-args>)