

I usually prefer using Vim with CodeChef in a split-screen mode, something like this: vimrc file to get a better understanding of the above functionality. F6: Compile and run the current file with stdin as input.F5: Compile and run the current file with inp.txt as input data.We will be using vim keymapping for this functionality.
BEST VIMRC FOR MAC CODE

Compiling and running codes by hitting a shortcut key like F5.Using templates for languages like C, C++ & Python.Vim can open large files quickly as compared to other text editors like VS Code.Īs I was using VS Code before, I expected similar features from Vim like:.You can browse directories, open different files, run executables all from the command line itself, which will save a lot of time as you don’t need to switch between different programs like text-editor, terminal, file manager, etc.Vim is a very lightweight text editor that is available by default on many Linux distributions.So after going through numerous articles and guides, I managed to customize it enough to make it my default text editor for competitive programming. As I had plenty of free time due to this countrywide lockdown, I learned basics of Vim (Yes, the same vim that has forced many of us to hard reboot our machines at least once!). Hey readers!, I hope you all are healthy and doing well in this time of crisis.
