Vim/Konfiguracja: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Rofrol (dyskusja | edycje)
Nie podano opisu zmian
Rofrol (dyskusja | edycje)
Nie podano opisu zmian
Linia 1:
= Do zrobienia =
Wyjaśnienie mapowanie klawiszy, omap, noremap itp.
http://ianua.initd.org/vimit/vim63/html/map.html#map-overview
:omap (Operator-pending)
:help Operator-pending
<rofro> what's Operator-pending mode for mapping?
 
<shl> rofro: when you type d, it waits for another key, while it does that, it's Operator-pending
 
<rofro> shl, when it is used for mapping? could you give some example?
 
<shl> lets say you want to make dw delete up to the space instead of deleting the space as well, you would do :omap w e
 
<shl> you are remapping the w, it will work for dw, cw, yw, etc (map w when there is another character in front)
:he text-objects
you can't use omap to implement new text objects
 
= Zaczynamy =
W tej części postaramy się wypolerować trochę działanie vima zmieniając jego plik konfiguracyjny. Będziemy się wzorować na działaniu większości edytorów.