This repository hosts my vim configuration.
For neovim configuration, see here : https://github.com/frazrepo/nvim-config
git clone --depth=1 https://github.com/frazrepo/vimrc.git ~/.vim_runtime
cd ~/.vim_runtime
./install.sh
git clone --depth=1 https://github.com/frazrepo/vimrc.git %USERPROFILE%/.vim_runtime
cd %USERPROFILE%/.vim_runtime
install.bat
Just do a git rebase!
cd ~/.vim_runtime
git pull --rebase
And run install.sh (or install.bat) to update vimrc configuration file
Click to expand
leader =
Mapping | Action |
---|---|
F3 | Neoformat |
F4 | UndoTreeToggle |
F8 | Toggle quickfix window |
F9 | Toggle CtrlSF |
F10 | Rotate colorschemes |
<M-0> | Set font bigger (gui only) |
<M-9> | Set font smaller (gui only) |
Emmet
Mapping | Action |
---|---|
,, | Generate emmet |
vim-lion
Mapping | Action |
---|---|
gl{to-m}= | Right Align with = |
gL{to-m}= | Left Align with = |
vim-exchange
Mapping | Action |
---|---|
cx{to-motion} | Exchange with text object or motion |
cxx | Exchange lines |
ReplaceWithRegister
Mapping | Action |
---|---|
{"reg}gr{to-motion} | Paste register content on text object or motion |
{"reg}{motion}grr | Paste register content on lines |
vim-sandwich with surroung mappings
Mapping | Action |
---|---|
cs"= | Change surround |
css" | Change surround on line (detect surrouding) |
ys{motion}" | Add surround |
yss" | Add surround on line |
ds" | Delete surround |
dss | Delete surround on line |
S" | Add surround on visual selection |
vim-gtfo
Mapping | Action |
---|---|
gof | Open current buffer directory |
got | Open current buffer directory on terminal |
vim-unimpaired
Mapping | Action |
---|---|
( and ) | Map keys |
(t, )t | Switch between tabs |
(b, )b | Switch between buffers |
yo[r,n,w,x,....] | Toggle Options |
(space, )space, 10)space, (e, )e | Lines operations |
LeaderF
Mapping | Action |
---|---|
<c-p> | Files (t to open file in tab) |
<leader>, | Buffers |
<leader>; | BLines |
<leader>u | MRU |
<leader>co | Commands |
vim-rainbow
Mapping | Action |
---|---|
RainbowToggle | Toggle coloring |
vim-scripts/Tranpose
Mapping | Action |
---|---|
Tranpose | |
TranposeWords | |
TranposeTab | |
TranposeCSV , | |
TranposeInteractive |
sort-motion
Mapping | Action |
---|---|
gs{motion} | gs3j, gsi(, |
ultisnips and vim-snippets
Mapping | Action |
---|---|
<Tab> | Expand |
<Tab> | Jump forward |
<S-Tab> | Jump backward |
CtrlSF
Mapping | Action |
---|---|
<leader>* | Find selected word |
F9 | Toggle CtrlSF result Window |
<leader>/ | Prompt or Exec in Visual Mode |
custom text-objects
Mapping | Action |
---|---|
ciq, daq | Quotes q |
vic, vac, viC, vaC | Columns c |
cii, dai | Indents i |
cin(l)q, dai, ci,, ci=, .. | Targets |
cil, yil | Line l |
yie, cie | Entire e |
Miscellaneous Commands
Mapping | Action |
---|---|
ListLeaders | Show all leader mappings |
VisualBlock | Activate visual block mode |
SortByWitdh | Sort lines by width |
WipeReg | Clean all registers |
RemoveTrailingSpaces | Remove spaces |
Regexp search/replace pattern
:h fztips
:h fzvimtips
- completor : Manage auto completion correctly
- ctrlsf.vim : Side searching
- emmet-vim : Html editing
- leaderF : Fuzzy finder
- lightline : Lightweight status line
- neoformat: Various formatters for many languages
- auto-pairs : Auto close pairs (parentheses, quotes, ...)
- utilsnips + vim-snippets : Snippets
- vim-commentary
- vim-nerdtree : Tree Explorer
- vim-exchange : Exchange in pair with a new operator cx
- vim-fugitive : Git command inside vim
- vim-gtfo : Go to File Manager or Terminal
- vim-lion : Align text (like tabular)
- ReplaceWithRegister : Custom operator gr to replace with register content
- vim-move : Move lines or selections up and down using (ALT) jk keys
- vim-over : Highlight buffer when operating from command line (s/, /, g/)
- vim-polyglot : Languages Support
- vim-rainbow : Color parentheses, brackets,...
- vim-repeat : To repeat plugin command with dot (.)
- vim-rooter : Change dir to root project directory
- vim-sandwich : Surround texts with delimiters
- vim-sort-motion : Add an operator gs to apply sort
- targets.vim : Some text objects - quotes (q), columns (c), indents (i), line (l), entire buffer (e)
- vim-tranpose : Tranpose lines, csv, words, ...
- vim-unimpaired : Toogle Options, Next/Previous, Switch Lines or Add Spaces
- vim-whichkey : Display available key bindings in popup
Just do following:
- Remove
~/.vim_runtime
- Remove any lines that reference
.vim_runtime
in your~/.vimrc