This is My Personal Vimrc and Sublime script file.
This is Made For Windows Mechine. Change needed for Mac and Linux users.
Note : If you want compile c and c++ both then download the _vimrc file from the folder named "For Compile C and C++ Both". Otherwise for C++ download the normal _vimrc file.
Save _vimrc file in your Home directory like this "C:\Users\Subhajit".
Understand The Code:
- Line 11: "cd E:\C++" --> set your default path where all CPP Code files will be Save.
- Line 18 : F9 for Compile Code.
- Line 19 : F10 for Run Code.
- Line 20 : F11 for Both Compile & Run Code.
- GCC needed to install and added in your system path.
- Open Subline And Press ALT+SHIFT+3. It will devide your screen in 3 parts.
- Now make a folder where your code and input output fill will be save.
- Save two file named inputf.txt and outputf.txt in this folder.
- Now Make the CPP,input,output files in your 3 screens under sublime.
- Save the "C++ 14.sublime-build" file inside "C:\Users\Subhajit\AppData\Roaming\Sublime Text\Packages\User" path.
- Restart Sublime and write a code and press ctrl+shift+b to run it.
- You can change the keybinding from sublime settings. (I press f11 to run my code)
[
{ "keys": ["f11"], "command": "build", "args": {"select": true} },
{ "keys": ["ctrl+shift+b"], "command": "toggle_full_screen" },
]