Skip to content

Latest commit

 

History

History
46 lines (41 loc) · 1.15 KB

README.md

File metadata and controls

46 lines (41 loc) · 1.15 KB

Vim-for-CP

In windows (WSL):
image
In Linux:
image

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