Skip to content

frazrepo/vimrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,109 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VIM Configuration

This repository hosts my vim configuration.

For neovim configuration, see here : https://github.com/frazrepo/nvim-config

How to install on Linux ?

git clone --depth=1 https://github.com/frazrepo/vimrc.git ~/.vim_runtime
cd ~/.vim_runtime
./install.sh

How to install on Windows ?

git clone --depth=1 https://github.com/frazrepo/vimrc.git %USERPROFILE%/.vim_runtime
cd %USERPROFILE%/.vim_runtime
install.bat

How to update to latest version?

Just do a git rebase!

    cd ~/.vim_runtime
    git pull --rebase

And run install.sh (or install.bat) to update vimrc configuration file

Cheat Sheet

Mappings

Click to expand

Leader key

leader =

Various mappings

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)

Plugins usage

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

Custom Docs

Regexp search/replace pattern

:h fztips
:h fzvimtips

Plugins list

How to uninstall

Just do following:

  • Remove ~/.vim_runtime
  • Remove any lines that reference .vim_runtime in your ~/.vimrc

Resources

About

vim configuration - Optimized for azerty keyboard layout

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages