Lightweight configuration for vim'ing AtCoder contests.
vim8.0+ (recommended)clangdlanguage serverg++compiler with C++20 supportfzf(Fuzzy Finder)ripgrep
This configuration uses Vundle for plugin management and includes the following plugins:
- VundleVim/Vundle.vim: Plugin manager for Vim
- vim-utils/vim-man: View man pages in Vim
- junegunn/fzf and junegunn/fzf.vim: Fuzzy finder for file navigation
- Raimondi/delimitMate: Auto-closes brackets, quotes, etc.
- ycm-core/YouCompleteMe: Code-completion engine
- ajh17/VimCompletesMe: Tab completion enhancement
- prabirshrestha/vim-lsp: Language Server Protocol support
- prabirshrestha/async.vim: Async functions for Vim
- prabirshrestha/asyncomplete.vim: Async completion in pure Vim script
- prabirshrestha/asyncomplete-lsp.vim: LSP source for asyncomplete.vim
- sainnhe/gruvbox-material: Improved Gruvbox theme with better contrast
- itchyny/lightline.vim: Lightweight, configurable status line
-
Clone the Repository
git clone https://github.com/vleema/vimcfg.git
-
Install Vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim -
Copy the Configuration
cp vimcfg/vim/.vimrc ~/.vimrc-
Or use
stowfrom inside this project directory:stow */
-
-
Install Plugins:
Launch vim and run:
:PluginInstall -
Install YouCompleteMe
cd ~/.vim/bundle/YouCompleteMe python3 install.py
| Keybinding | Action |
|---|---|
; |
: |
<C-x> |
Exit terminal mode |
| Keybinding | Action |
|---|---|
<space>/ |
Ripgrep (current directory) |
<space>ff |
Find files (current directory) |
<space>, |
Find open buffers |
<space>uC |
Change colorscheme |
/ |
Lines in current buffer |
| 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 |
| 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 |
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.
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.
MIT