Something went wrong. Try again.
config for vim
Something went wrong. Try again.
Files
README.md
Vim Configuration #
This repository contains a comprehensive Vim configuration with modern plugins and settings for an efficient development experience.
Features #
Plugin Management #
Uses vim-plug for plugin management with the following plugins:
-
UI & Appearance
catppuccin/vim- Catppuccin color scheme (mocha variant)vim-airline/vim-airline- Enhanced status linevim-airline/vim-airline-themes- Airline themesryanoasis/vim-devicons- File type iconspreservim/nerdtree- File explorertiagofumo/vim-nerdtree-syntax-highlight- Syntax highlighting for NERDTree
-
Git Integration
tpope/vim-fugitive- Git commandsairblade/vim-gitgutter- Git diff indicatorsXuyuanp/nerdtree-git-plugin- Git status in NERDTree
-
Editing & Productivity
tpope/vim-surround- Surround text objectstpope/vim-commentary- Comment/uncomment functionalityjunegunn/fzf.vim- Fuzzy finderctrlpvim/ctrlp.vim- File finderWolfgangMehner/bash-support- Bash script support
-
Language Support
prabirshrestha/vim-lsp- LSP clientmattn/vim-lsp-settings- LSP server configurationsprabirshrestha/asyncomplete.vim- Async completionprabirshrestha/asyncomplete-lsp.vim- LSP completion integrationneoclide/coc.nvim- Concurrency of completionziglang/zig.vim- Zig language support
Configuration #
Basic Settings #
- Indentation: 2 spaces, smart tabs, C-style indentation
- Appearance: True colors, dark background, line numbers (relative and absolute)
- UI: Enhanced status line, cursor line highlighting, mouse support
- Font: JetBrains Mono Nerd Font (12pt)
Key Mappings #
File Navigation #
Ctrl+n- Toggle NERDTree file explorer
LSP Features #
gd- Go to definitiongr- Go to referencesK- Hover documentation<leader>rn- Rename symbol<leader>ca- Code actions
Completion #
Tab/Shift+Tab- Navigate completion menuEnter- Accept completionCtrl+Space- Force refresh completion
Customization #
- NERDTree: Shows hidden files by default
- Airline: Powerline fonts enabled, Catppuccin theme
- Devicons: Conceals filenames for cleaner display
- LSP: Auto-completion with 200ms delay
Installation #
-
Install vim-plug:
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -
Copy
.vimrcto~/.vimrc -
Install plugins:
vim +PlugInstall +qall -
Install required fonts (JetBrains Mono Nerd Font) for proper icon display
Requirements #
- Vim 8.0+ with
+termguicolorssupport - JetBrains Mono Nerd Font (or similar Nerd Font)
- Git (for some plugins)