| Register | FAQ | Calendar | Search | Today's Posts | Mark Forums Read |
|
#1
| |||
| |||
| Sometimes I like to align certain text lines so that a certain character in each line is in the same column in each line, like the following: var aaaaaaaa = "aaaaa"; var bbb = "bbbb"; var ccccc = "ccccc"; .... to ... var aaaaaaaa = "aaaaa"; var bbb = "bbb"; var ccccc = "ccccc"; I can't figure out how to write a map that will do this. Is it possible? bgold12 |
|
#2
| |||
| |||
| bgold12 wrote: > Sometimes I like to align certain text lines so that a certain > character in each line is in the same column in each line, like the > following: > > var aaaaaaaa = "aaaaa"; > var bbb = "bbbb"; > var ccccc = "ccccc"; > > ... to ... > > var aaaaaaaa = "aaaaa"; > var bbb = "bbb"; > var ccccc = "ccccc"; > > I can't figure out how to write a map that will do this. Is it > possible? Check out the Align plugin: http://vim.sourceforge.net/scripts/s...script_id=1195 V <move> \t= Minnesota Boundary Waters! aka Canoe. |
![]() |
| Thread Tools | |
| Display Modes | |
In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.