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

Usunięta treść Dodana treść
Rofrol (dyskusja | edycje)
mNie podano opisu zmian
Rofrol (dyskusja | edycje)
m Do zrobienia na koniec, jeden nowy link
Linia 26:
Wszystkie ustawienia funkcji w programie, zarówno dotyczące wyglądu jak i jego działania można wprowadzać w trybie ''Linii Komend'' i w trybie ''Ex''.
Oczywiście wszystkie te opcje wprowadzone do programu podczas jego działania będą obowiązywać tylko w czasie jego działania, jeżeli wyłączymy go wszystkie ustawienia zostaną utracone. Aby temu zapobiec musimy zapisać zapisać zmiany do pliku konfiguracyjnego.
 
 
 
 
 
= 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 =
Linia 184 ⟶ 163:
 
http://ciaranm.org/files/vimrc
 
http://www.ashberg.de/vim/vimrc.html
 
= 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