A modular vim configuration split into two main files for better organization and flexibility.
config.vim- Core vim settings, mappings, and basic functionalityplugins.vim- Plugin management, installation, and plugin-specific configurations
If you only want the core vim settings without plugins, add this to your ~/.vimrc:
" Source basic vim configuration
source ~/config_vim/config.vimFor the complete setup including automatic plugin management, add this to your ~/.vimrc:
" Source plugin management and configurations
source ~/config_vim/plugins.vim
" Source basic vim configuration
source ~/config_vim/config.vimNote: Source plugins.vim first to ensure plugins are loaded before the main configuration.
- Optimized display settings with line numbers and syntax highlighting
- Smart indentation and formatting rules
- Enhanced search functionality
- Custom key mappings and leader shortcuts
- Automatic file handling and backup management
- Custom status line with git branch display
- Auto-closing brackets and quotes
- File-type specific settings
- Automatic vim-plug installation
- Auto-installation of missing plugins
- Periodic plugin updates (every 7 days)
- Configured plugins:
- gruvbox - Color scheme
- NERDTree - File explorer
- vim-airline - Enhanced status line
- vim-polyglot - Language pack
- vim-commentary - Easy commenting
- vim-surround - Surround text objects
- ALE - Asynchronous linting
- Tagbar - Code structure overview
- IndentLine - Visual indentation guides
<leader>=\jj- Exit insert mode<space>- Enter command mode<leader>w- Quick save<leader>q- Quick quit<Ctrl-t>- Toggle NERDTree<F5>- Run Python script<F6>- Run current file (language-aware)<F8>- Toggle Tagbar
- Automatic plugin installation on first run
- Periodic plugin updates (configurable interval)
- Auto-creation of necessary directories
- Trailing whitespace removal on save
- Cursor position restoration when reopening files
Edit the configuration files directly or override settings in your ~/.vimrc after sourcing these files.
MIT License