Блог пользователя mohammadsalahaqabag

Автор mohammadsalahaqabag, история, 5 лет назад, По-английски

Hello, I need help on how to connect a wim for Windows to C ++. Can you please help?

  • Проголосовать: нравится
  • -26
  • Проголосовать: не нравится

»
5 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +1 Проголосовать: не нравится

Do you have any experience in vim? If not you should learn how to use vim online. Otherwise, if you have some experience in vim and you can use it pretty well, there isn't really much to setup to your vim.

In windows, there is a software called gvim, which is a graphical version of the vim command line editor. Find the gvim folder in a main folder called "Program Files", and find the gvimrc. I recommend using something like notepad++ to edit it, because I haven't really figured out a quicker alternative than editing it before hand. Once you have your text editor and are able to edit your gvimrc. You should add commands like:

set autoindent

set smartindent

set tabstop=4

set expandtab

set smartindent=4

There are more commands you can learn how figure out online; I recommend using William Lin's Gvimrc (which some changes). His github is called tmwilliamlin168, and his vimrc is located in his CP-Youtube repository.

If you haven't set up MinGw yet, you should. It isn't that difficult; search up MinGw online and install the necessary files. You should select g++ to install and select mark updates (you can figure it out with a little trial and error). Then you need to go to your path and update your path (if you don't know how, search how to online). Make a new path and you should add the folder that involves MinGW (which should be in your main directory), called "bin". This contains g++ and some other programs. Now after you're done with this step, you should be able to use William Lin's macros for Compiling C++ (F9) and Running C++ (F10).

I'm sorry for the lack of detail in writing this, but I hope the instructions weren't too lacking.