Skip to content

My vim configuration to write and run C/C++ code for competitive programming or any thing similar.

License

Notifications You must be signed in to change notification settings

abdalrahmanshaban0/Vim-for-CP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

My vim configuration to write and run C/C++ code for competitive programming or any thing similar.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published