ElmCast / elm-vim

Elm plugin for Vim
BSD 3-Clause "New" or "Revised" License
572 stars 102 forks source link

'Press ENTER or type command to continue' on saving #148

Open jmopp opened 6 years ago

jmopp commented 6 years ago

Hey everyone,

When writing an elm file, I get 'Press ENTER or type command to continue'. It gets rather annoying, having to do that every time I save an elm file.

I installed Plug on an empty vim profile using the instructions at https://github.com/junegunn/vim-plug, and then I loaded elm-vim by adding the following lines to an empty .vimrc:

call plug#begin('~/.vim/plugged') 
Plug 'elmcast/elm-vim' 
call plug#end()

Then I reloaded vim and ran :PlugInstall.

Is there any command that's executed on writing that could cause the 'Press ENTER' prompt to come up?

t-a-y-l-o-r commented 4 years ago

I'm getting the same issue but am using pathogen.

Really kills my workflow to have to hit enter after every save

t-a-y-l-o-r commented 4 years ago

I was actually able to resolve this as follows:

install:

    npm
    elm-test
    elm-oracle
    elm-format

run:

    elm-format

Finally close and re-open all files in vim. If you don't run elm-format FIRST you'll get a nasty message in vim when saving.

jeff-emanuel commented 3 years ago

I disabled elm format on save in ftplugin/elm.vim

if !exists('g:elm_format_autosave')
" changed to disable format on autosave, was 1.
    let g:elm_format_autosave = 0
endif