Dependancies:
g++
ccls (Example in Debian: $ sudo apt install ccls)
nodejs
vim-plug
Write in vim:
:CocConfig
then paste:
{
"languageserver": {
"ccls": {
"command": "ccls",
"filetypes": ["c", "cc", "cpp", "c++", "objc", "objcpp"],
"rootPatterns": [".ccls", "compile_commands.json", ".git/", ".hg/"],
"initializationOptions": {
"cache": {
"directory": "/tmp/ccls"
}
}
}
}
}
Note:
You need to comment and uncomment some lines in the files in case native Linux or WSL! Just read the comments.
Key Bindings:
To Build and Run ---> F9
To Paste test cases in input.txt while in code file ---> Ctrl + t
To Close any splited tab ---> Ctrl + q
To Split a file from NERDTree ---> Ctrl + s
Auto Indent from what you stand to down ---> =G