When using tailwind, there are many utility classes like px-1, py-1 etc. When using Ctrl+a to increment px-1, it becomes px0. How can I make Ctrl+a on px-1 become px-2 instead?
When using tailwind, there are many utility classes like px-1, py-1 etc. When using Ctrl+a to increment px-1, it becomes px0. How can I make Ctrl+a on px-1 become px-2 instead?
Don't. The -1 in px-1 is recognized as a negative number so incrementing it can only turn it into a 0.
Instead, use <C-x> to decrement it to -2 or follow this suggestion, found a few screens below :help ctrl-a:
For decimals a leading negative sign is considered for incrementing/
decrementing, for binary, octal and hex values, it won't be considered. To
ignore the sign Visually select the number before using CTRL-A or CTRL-X.