|
|
|
|
|
by imron
1455 days ago
|
|
tabstop is how far the cursor moves when you press tab. shiftwidth is how far text moves when you shift it with >> or << Normally you'd set them both to the same value so that indenting blocks of code with >> or << shifts them by the same amount as the tabstop. There's also another setting 'shiftround' (which I only learnt about today in another comment) which makes shifts done with << and >> round themselves to the nearest multiple of shiftwidth. |
|
never occurred to me to use >>. probably because the three keystroke savings didn't register with me. but that's what I mean, once I learn the basics, the rest are just gravy that don't stick in my memory.