-
Notifications
You must be signed in to change notification settings - Fork 6
VIM custom keystrokes
Sergey Lukin edited this page Jul 21, 2014
·
30 revisions
My dotfiles repo includes custom VIM & Plugins configuration which helps coding/typing even faster
Below is a list of custom keystrokes set in configuration
Note that you can override any of these by creating & editing ~/.vimrc.local
file
-
,
- So called<leader>
, is used in combination with other keys to call different actions -
;
- Switch from normal mode to command mode -
<leader>h
- Cancel highlighted selections -
<leader>q
- Format all file lines -
<leader>r
- Reload opened files -
<leader>da
- Delete all buffers -
<leader>ev
- Open ~/.vimrc file in new tab - very fast & useful -
<leader>so
- Reload ~/.vimrc file without restarting VIM
-
<space>
- Fold/Unfold selected lines
-
jj
- Switch from insert mode to normal mode -
<leader><tab>
- Code completion popup
-
:ff
- Open current file in Firefox
-
<leader>n
OR<F3>
- Open/Hide NERDTree browser
-
Ctrl-e
- Execute mapping -
Ctrl-n
- Next mapping
-
<leader>c
- Comment selected lines/letters
-
<leader>s
- Run RSpec
-
<leader>md
- convert markdown into HTML in current file
Plugin PHP-CS-Fixer
-
<leader>ff
- Format current PHP file according to PSR-0, PSR-1, PSR-2 standards -
<leader>fd
- Format current directory with PHP files according to PSR-0, PSR-1, PSR-2 standards