InterviewSolution
| 1. |
Any Tips For Making Vi Programmer Friendly? |
|
Answer» :set ai will make it auto-indent for you. :set sw=# where # is a number will set the shiftwidth (tabwidth). You can then use <<, >> to SHIFT a line left or right. Plus, you can use <% to shift a {, ( or [ set left or right (with >%). You must be on top of the SPECIFIC {, }, (, ), [ or ] of the pair to shift them. :set sm will show the MATCHING {, ( or [ when you type the closing ONE. :set lisp will make some changes that are useful for lisp PROGRAMMING. () will move back and forth over s-expressions, and {} will move without stopping at atoms. :set ai will make it auto-indent for you. :set sw=# where # is a number will set the shiftwidth (tabwidth). You can then use <<, >> to shift a line left or right. Plus, you can use <% to shift a {, ( or [ set left or right (with >%). You must be on top of the specific {, }, (, ), [ or ] of the pair to shift them. :set sm will show the matching {, ( or [ when you type the closing one. :set lisp will make some changes that are useful for lisp programming. () will move back and forth over s-expressions, and {} will move without stopping at atoms. |
|