Skip to content

The essential Vim configuration for developers (vimrc).

License

Notifications You must be signed in to change notification settings

TMKE/prodev-vim

Repository files navigation

The Essential vimrc for Developers

This Vim configuration contains a basic setup for developers (a number of handy plugins, keybindings and colorschemes that make your Vim a "pro" editor).

How to install

Clone the repository:

git clone https://github.com/TMKE/pro-vim.git ~/.vim

Move .vimrc file to the ~ directory:

mv ~/.vim/.vimrc ~/

Type the following command inside Vim in order to install plugins:

:PlugInstall

Screenshots

Included Plugins

To use these plugins correctly, consider reading their documentation

  • limelight.vim: Focus on current paragraphe when writing
  • coc.nvim: Plugin for autocompletion
  • lightline.vim: Add lightline status line
  • indentLine: A vim plugin to display the indention levels with thin vertical lines
  • nerdtree: A tree explorer plugin for vim
  • vim-visula-multi: Multiple cursors plugin for vim/neovim
  • vim-gitgutter: A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks
  • vim-commentary: A plugin to comment stuff out
  • vim-surround: Delete/change/add parentheses/quotes/XML-tags/much more with ease
  • vim-fugitive: Plugin for Git (call Git commands)
  • fzf: A command-line fuzzy finder
  • fzf.vim: A a bundle of fzf-based commands and mappings
  • ultisnips: The ultimate solution for snippets in Vim
  • vim-smoothie: Smooth scrolling in Vim
  • auto-pairs: Insert or delete brackets, parens, quotes in pair
  • vim-closetag: Auto close HTML tags
  • nnn.vim: File manager powered by nnn (nnn is required)
  • vim-polyglot: Language pack for Vim

Plugins for syntax highlighting

Plugins for Flutter

Included Colorschemes

Key Mappings

Normal Mode

  • The leader key (<leader>) is remaped to , instead of \.
  • F5: toggle NERDTree
  • Backspace: delete characters behind the cursor
  • Tab: move between buffers
  • Y: yank from the current position until the end of the line (equivalent of y$)
  • <leader> (i.e. ,) then tn: open a new tab (instead of :tabnew)
  • <leader>, t then <leader again: move to the next tab (instead of :tabnext)
  • <leader> then tm: move a tab (instead of :tabmove)
  • <leader> then tc: close a tab (instead of :tabclose)
  • <leader> then to: close all tab pages except the current one (instead of :tabonly)
  • <leader> then k/j: move current line up/down
  • <leader> then w: move between splits

Command Mode

  • :w!!: write to a file using sudo if you forgot to "sudo vim file"

Visual Mode

  • K/J: move the current line (or multiple lines selected) up/down

Insert Mode

  • Ctrl+k/j: move current line up/down
  • Tab: indent (Tab+Shift to unindent)
  • Ctrl + d: forward delete

About

The essential Vim configuration for developers (vimrc).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published