Skip to content

vleema/vimcfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Minimal Vim Config for Competitive Programming in C++

Lightweight configuration for vim'ing AtCoder contests.

Requirements

  • vim 8.0+ (recommended)
  • clangd language server
  • g++ compiler with C++20 support
  • fzf (Fuzzy Finder)
  • ripgrep

Plugins

This configuration uses Vundle for plugin management and includes the following plugins:

Core & Utility

Completion & Intelligence

Appearance

Installation

  1. Clone the Repository

    git clone https://github.com/vleema/vimcfg.git
  2. Install Vundle

    git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
  3. Copy the Configuration

    cp vimcfg/vim/.vimrc ~/.vimrc
    • Or use stow from inside this project directory:

      stow */
  4. Install Plugins:

    Launch vim and run:

    :PluginInstall
    
  5. Install YouCompleteMe

    cd ~/.vim/bundle/YouCompleteMe
    python3 install.py

Usage

Vim

Keybinding Action
; :
<C-x> Exit terminal mode

Fuzzy Finder

Keybinding Action
<space>/ Ripgrep (current directory)
<space>ff Find files (current directory)
<space>, Find open buffers
<space>uC Change colorscheme
/ Lines in current buffer

C++ Specific Commands

Keybinding Action
<space>ac Compile current file
<space>ar Compile and run
<space>acri Compile and run with input from file 'i'
<space>ard Launch GDB debugger

LSP Navigation

Keybinding Action
gd Go to definition
gr Find references
gi Go to implementation
K Show documentation hover
<space>cr Rename symbol
<space>ca Code action menu
<space>cf Quick fix
[g / ]g Previous/next diagnostic

Customization

The configuration is thoroughly commented to make customization easy. Key areas you might want to modify:

  • Compiler flags in the autocmd section
  • Theme options (background intensity, color scheme)
  • LSP settings for different languages
  • Specific macros or snippets.

Contributing

Feel free to submit issues or pull requests if you have suggestions for improvements or bug fixes.

  • If you like you may want to add some useful snippets or macros idk.

License

MIT

About

Minimal vim configuration for competitive programming in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published