Skip to content

eparreno/vimfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vimfiles

My personal Vim configuration

Installation

git clone https://github.com/eparreno/vimfiles.git ~/.vim

That's it. Really. You don't even need to link .vimrc

The setup will automatically install vim-plug on first run.

Base Customizations

  • Leader key: <space>
  • Line numbers: enabled
  • Indentation: 2-space soft tabs (expandtab)
  • Search: case-insensitive (unless uppercase letters present), with gdefault flag
  • Splitting: vertical splits go right, horizontal splits go below
  • Clipboard: uses system clipboard
  • Color scheme: Nord
  • Encoding: UTF-8
  • Auto-deletion: trailing whitespaces removed on save
  • No backup/swap files

Mappings

Leader Key

  • <space> - Leader key

Normal Mode

  • ; - Enter command mode (mapped to :)
  • H - Go to beginning of line
  • L - Go to end of line
  • Y - Yank until end of line (like D and C)
  • Q - Format text (gq)
  • ! - Execute shell command
  • <C-h/j/k/l> - Switch between splits (no need to prepend <C-w>)
  • <leader><space> - Clear search highlight
  • <leader>e - Edit command with current file path
  • <leader>c - Comment/uncomment line or selection
  • <leader>w - Save file
  • <leader>q - Quit
  • <leader>v - New vertical split
  • <leader>s - New horizontal split
  • <leader>0 - Toggle NERDTree
  • <leader>t - Recursively toggle fold
  • <Tab> - Previous buffer (BufSurf)
  • <S-Tab> - Next buffer (BufSurf)
  • <C-c> - Close current buffer
  • <C-p> - Open CtrlP fuzzy finder
  • Arrow keys in normal mode are disabled (for training)
  • Arrow keys in command mode resize windows

Insert Mode

  • jj or kk - Exit to normal mode

Visual Mode

  • < and > - Keep visual selection after indenting
  • H - Go to beginning of line
  • L - Go to end of line

Plugins

The configuration uses vim-plug for plugin management.

Installed Plugins

Language-Specific

File Structure

~/.vim/
├── vimrc           # Main configuration file
├── config.vim      # General settings and options
├── plugins.vim     # Plugin definitions and configurations
├── mappings.vim    # Key mappings
├── autoload/       # vim-plug bootstrap
└── colors/         # Color schemes (nord, monochrome, flattened, etc.)

Customization

Create ~/.vimrc.local for any personal customizations that you don't want to commit to the repository. q q

About

vim configuration

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published