To cancel the HAML code, I usually add or remove 2 spaces. Addendum:
- Enter visual mode (ctrl + v)
- jj to select strings
- shift + i to enter insert
- type 2 spaces
- Esc
This is added 2 spaces. However, to remove spaces, I am not working, for example:
- Enter visual mode (ctrl + v)
- jj to select strings
- shift + i to enter insert
- Delete 2 spaces (with inverse space or delete)
- Esc
It just doesn't work; other spaces are not removed. How then can I do this?
Here is a sample code:
.module_1
.pricing_details
%h2
Save
The idea moves everything so that it matches 2 places in relation to .module_1 as:
.module_1
.pricing_details
%h2
Save
The proposed solution using <> only works for indentation now, I would like, for example:
.module_1
.pricing_details
%h2
Save
move up:
.module_1
.pricing_details
%h2
Save
source
share