This Vim configuration contains a basic setup for developers (a number of handy plugins, keybindings and colorschemes that make your Vim a "pro" editor).
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
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
- yats.vim: TypeScript syntax highlighting in Vim
- vim-javascript: Improved Javascript indentation and syntax support in Vim
- vim-jsx-pretty: JSX and TSX syntax pretty highlighting
- vim-styled-components
- vim-json: JSON syntax highlighting
- vim-graphql: A Vim plugin that provides GraphQL file detection, syntax highlighting, and indentation
- vim-go: Go development plugin for Vim
- kotlin-vim: Kotlin plugin for Vim
- blackbirdtheme
- srcery-vim
- vim-brogrammer-theme
- vim-monokai-tasty
- tender.vim
- sonokai
- simpleblack
- onedark.vim
- vim-monokai-pro
- vim-deus
- spacecamp
- atlas.vim
- vim-enfocado (default)
- The leader key (
<leader>
) is remaped to,
instead of\
. F5
: toggle NERDTreeBackspace
: delete characters behind the cursorTab
: move between buffersY
: yank from the current position until the end of the line (equivalent ofy$
)<leader>
(i.e.,
) thentn
: open a new tab (instead of:tabnew
)<leader>
,t
then<leader
again: move to the next tab (instead of:tabnext
)<leader>
thentm
: move a tab (instead of:tabmove
)<leader>
thentc
: close a tab (instead of:tabclose
)<leader>
thento
: close all tab pages except the current one (instead of:tabonly
)<leader>
thenk
/j
: move current line up/down<leader>
thenw
: move between splits
:w!!
: write to a file using sudo if you forgot to "sudo vim file"
K
/J
: move the current line (or multiple lines selected) up/down
Ctrl
+k
/j
: move current line up/downTab
: indent (Tab
+Shift
to unindent)Ctrl
+d
: forward delete