curl -s https://pgib.me/install/vim | sh
cd ~
git clone https://github.com/pgib/pgib-vim-config.git .vim
cd .vim
git submodule update --init
cd ..
ln -s .vim/vimrc.conf .vimrc
Once you've installed as per above, you can update like so:
cd ~/.vim
git pull && git submodule update --init
NERDTree activation/deactivation with ,,
(or specifically <Leader>,
).
BufExplorer for seeing, managing, and switching between buffers. <Leader>bb
.
Easily switch between split windows using the `
(backtick).
Want to make changes to your ~/.vimrc
? Easy: <Leader>ev
:
Then apply the changes with <Leader>sv
. (Shout-out to @flyingoctopus for this gem.)
Key-combo | Description |
---|---|
<Leader> |
The Vim Leader key is , |
<Leader>c |
Copy to system clipboard (Mac OS X only) |
<Leader>v |
Paste from system clipboard (Mac OS X only) |
F1 | Line number toggle |
F2 | Paste-mode (disables auto intent/comment) toggle |
F4 | Close buffer (:close ) |
F5 | Toggle between relative and regular line numbers |
Ctrl-n | Next buffer |
Ctrl-p | Previous buffer |
n | Next match from search and pulse the cursor line |
N | Previous match from search and pulse the cursor line |
<Leader> cc |
Comment the line/selection |
<Leader> cu |
Uncomment the line/selection |
Ctrl-w o | Zoom in and out of the current window |
<Leader> t |
Search for files VERY quickly using fzf |
:Rg | Search within all files VERY quickly using ripgrep (must have ripgrep already installed) |