LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-03-2010, 07:45 AM   #1
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
Elastic Tabstops


I wonder if any of you have tried elastic tabstops?

Also I wonder if it is possible to have them in vim?
 
Old 04-03-2010, 07:55 AM   #2
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
I wonder if any of you have tried elastic tabstops?

Also I wonder if it is possible to have them in vim?

Every decent editor has rectangular blocks copy and move. So, I think, it's easy to move right/left a number of lines at the same time. My favorite editor is NEdit, and I'm using rectangular blocks copy and move feature when needed.

I am familiar with rectangular blocks copy and move feature since WordStar editor (early-mid eighties). Modern analog is jstar: http://en.wikipedia.org/wiki/Joe%27s_Own_Editor .
 
Old 04-03-2010, 10:11 AM   #3
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443

Original Poster
Blog Entries: 3

Rep: Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723Reputation: 723
I thought that it really might solve an issue I constantly have and could be quite convenient.
 
Old 04-03-2010, 10:31 AM   #4
Sergei Steshenko
Senior Member
 
Registered: May 2005
Posts: 4,481

Rep: Reputation: 454Reputation: 454Reputation: 454Reputation: 454Reputation: 454
Quote:
Originally Posted by MTK358 View Post
I thought that it really might solve an issue I constantly have and could be quite convenient.
Look at this example:

Code:
int foo; // line one of very important comments
         // line two of even more important comments
         // well, a third line
- suppose you first want to lengthen foo:

Code:
int much_longer_foo; // line one of very important comments
         // line two of even more important comments
         // well, a third line
.

Of course, the comments become misaligned.


Then you pick

Code:
         // line two of even more important comments
         // well, a third line
as rectangular block and move the needed number of positions to the right. So, the comments are once again aligned:

Code:
int much_longer_foo; // line one of very important comments
                     // line two of even more important comments
                     // well, a third line
.

So, what is the issue/problem ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:37 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration