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

Start editing new file sets vim to edit template file instead. #1347

Closed
wolf0403 opened this issue Jul 9, 2017 · 4 comments
Closed

Start editing new file sets vim to edit template file instead. #1347

wolf0403 opened this issue Jul 9, 2017 · 4 comments

Comments

@wolf0403
Copy link

wolf0403 commented Jul 9, 2017

Behavior

Either by
$ vim newfile.go
or within VIM:
:e newfile.go

VIM is set to edit ~/.vim/plugged/vim-go/templates/hello_world.go, instead of "newfile.go" in cwd.

Steps to reproduce:

  1. Enter vim
  2. :e newfile.go
  3. Observe statusline:
    "~/.vim/plugged/vim-go/templates/hello_world.go" 7L, 67C

Configuration

  • vimrc you used to reproduce

call plug#begin('~/.vim/plugged')
Plug 'fatih/vim-go'
call plug#end()

  • vim version: 7.4.2235, with
  • vim-go version:
    commit f08fcab
    Author: Fatih Arslan ftharsln@gmail.com
    Date: Thu Jul 6 23:26:49 2017 +0300

Installed with https://github.com/junegunn/vim-plug.

  • go version:
    go version go1.8beta2 darwin/amd64
@wolf0403
Copy link
Author

wolf0403 commented Jul 9, 2017

First discovered with Windows Subsystem for Linux (Ubuntu on Windows) with vim 7.4.1689, with same version of vim-go / vim-plug.

@wolf0403
Copy link
Author

Verified that v1.13 works fine.

@arp242
Copy link
Contributor

arp242 commented Jul 23, 2017

Note that v1.13 and master behave exactly the same for me. I don't see any changes that would explain this change in behaviour either; there haven't been many for this feature.

Either way, I created a PR which should fix this.

@peterwillcn
Copy link

neovim not work....

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