Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jmopp opened this issue Dec 17, 2017 · 3 comments
Open

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

jmopp opened this issue Dec 17, 2017 · 3 comments

Comments

@jmopp
Copy link

jmopp commented Dec 17, 2017

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
Copy link

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
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants