#Ma configuration de Vim

Quelques liens utiles

Quelques raccourcis à connaître:

python_fn.vim
"   ]t      -- Jump to beginning of block
"   ]e      -- Jump to end of block
"   ]v      -- Select (Visual Line Mode) block
"   ]<      -- Shift block to left
"   ]>      -- Shift block to right
"   ]#      -- Comment selection
"   ]u      -- Uncomment selection
"   ]c      -- Select current/previous class
"   ]d      -- Select current/previous function
"   ]<up>   -- Jump to previous line with the same/lower indentation
"   ]<down> -- Jump to next line with the same/lower indentation

python.vim
Execute file being edited with <Shift> + e
: Pyflakes
: Pylint

pydiction.vim
C-n      -- Code completion
C-S-n   -- reverse direction

Mettre/enlever les numéros de ligne
<F2>

Navigation dans les modules
<F4>

Arbre
:NERDTree
:nmap <F9> NERDTree

Utiliser des Onglets
:tabnew nomDuFichier
Ctrl-PageUp/PageDown: cycler dans les fichiers ouverts

Copy/paste sans soucis
:set paste
insert
:set paste!

Visual blocks
ctrl+v pour passer en visuel
shift+i pour passer en insertion faire la modif puis ctrl+c

Using viewports
:sp will split the Vim window horizontally. Can be written out entirely as :split .
:vsp will split the Vim window vertically. Can be written out as :vsplit .
Ctrl-w Ctrl-w moves between Vim viewports.
Ctrl-w j moves one viewport down.
Ctrl-w k moves one viewport up.
Ctrl-w h moves one viewport to the left.
Ctrl-w l moves one viewport to the right.
Ctrl-w = tells Vim to resize viewports to be of equal size.
Ctrl-w - reduce active viewport by one line.
Ctrl-w + increase active viewport by one line.
Ctrl-w q will close the active window.
Ctrl-w r will rotate windows to the right.
Ctrl-w R will rotate windows to the left.

Dépôt de ma configuration Vim (avec autocomplétion, navigateur de fichier, snippets…) sur gitHub

Date de publication: 21/03/2010
Mots-clefs: #outils #vim