vim-codefmt icon indicating copy to clipboard operation
vim-codefmt copied to clipboard

Use vim's builtin format mapping

Open tbodt opened this issue 6 years ago • 2 comments

tbodt avatar Jul 06 '19 21:07 tbodt

Removed autocmd from mappings file, PTAL

tbodt avatar Mar 02 '20 07:03 tbodt

Thanks!

Removed autocmd from mappings file, PTAL

Looks like the autocmd is still in the mappings file? I'd suggest to instead restructure a bit to define a codefmt#SetFormatExprIfAvailable and then replace the unconditional autocmd with some instructions in the help file / README to recommend putting these lines in your vimrc:

augroup codefmt_formatexpr
  autocmd!
  autocmd BufEnter * call codefmt#SetFormatExprIfAvailable()
augroup END

dbarnett avatar Jul 16 '22 20:07 dbarnett