Author Topic: 'vim' is not recognized  (Read 13510 times)

Ren

  • Jr. Member
  • **
  • Posts: 41
'vim' is not recognized
« on: October 26, 2018, 03:39:45 PM »
Dear all,

I try to install my FEAP85 following Prof. S. Govindjee' video, and it goes well as long as I type 'vim Itest' in the cmd command, which gives 'vim' is not recognized. and the detail is
Code: [Select]
Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. All rights reserved.

C:\Users\Liu>cd E:\0Newtech\feap_85\ver85_release_April_25_2018\ver85\main

C:\Users\Liu>e:

E:\0Newtech\feap_85\ver85_release_April_25_2018\ver85\main>vim Itest
'vim' is not recognized as an internal or external command,
operable program or batch file.
I install the vim 8.1.1 and it can work.

Looking forward to all reply!
Thank you in advance!
Ren

FEAP_Admin

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 993
Re: 'vim' is not recognized
« Reply #1 on: October 27, 2018, 09:33:08 AM »
The error says it all.

Your operating system can not find the vim executable.  You need to put it someplace on your path.

Ren

  • Jr. Member
  • **
  • Posts: 41
Re: 'vim' is not recognized
« Reply #2 on: October 27, 2018, 12:59:59 PM »
Dear FEAP_Admin,

Thank you for your reply!

I try to add both paths in User variables and System variables, but it still does not work correctly, as C:\Program Files (x86)\Vim. So I restart my PC, it still shows the vim is not recognized. So would you please give me more advice on this problem?

Have a good weekend!
Best Regard,
Ren.

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: 'vim' is not recognized
« Reply #3 on: October 28, 2018, 12:07:59 AM »
You need to ask someone who understands windows to help you.  Or just use notepad or some other plain ascii text editing program.

Ren

  • Jr. Member
  • **
  • Posts: 41
Re: 'vim' is not recognized
« Reply #4 on: October 28, 2018, 09:53:07 AM »
Dear Prof. Govindjee,

Thank you for your reply and guidance. I will post my solution when I solve it.

Best Regards,
Ren


resammc

  • Full Member
  • ***
  • Posts: 95
Re: 'vim' is not recognized
« Reply #5 on: October 30, 2018, 01:00:03 AM »
Dear FEAP_Admin,

Thank you for your reply!

I try to add both paths in User variables and System variables, but it still does not work correctly, as C:\Program Files (x86)\Vim. So I restart my PC, it still shows the vim is not recognized. So would you please give me more advice on this problem?

Have a good weekend!
Best Regard,
Ren.

I think, instead of C:\Program Files (x86)\Vim, you should put C:\Program Files (x86)\Vim\vim81 in the path, as it is the directory which contains vim.exe.

Another option would be to uninstall vim and install it again. You just have to make sure that you check the "Create .bat files for command line use" item during the installation and the installer will take care of everything for you.

Ren

  • Jr. Member
  • **
  • Posts: 41
Re: 'vim' is not recognized
« Reply #6 on: October 30, 2018, 09:36:15 AM »
Dear resammc,

Just as you say, modify the path C:\Program Files (x86)\Vim\vim81, and it works. Wonderful!

Thank you a lot!

Best Regards,
Ren