Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

string on left and number align right #35

Open
belisair opened this issue Sep 16, 2014 · 2 comments
Open

string on left and number align right #35

belisair opened this issue Sep 16, 2014 · 2 comments

Comments

@belisair
Copy link

Hi guys,

thank you for your vim plugin. As data expert, I'm spending my life on csv files and probably use your plugin 20 times per day. However I have request to you:

could it be possible to align by default any number on right and any string on the left (which is the default behaviour) ?

Here is a quick example:

WORD          | COUNT | SUM      
Edinburgh     | 9     | 2092235  
London        | 12    | 3339260  
New York      | 11    | 3588090  
San Francisco | 14    | 3293475  
Sidney        | 2     | 181000   
Singapore     | 4     | 913725   
Tokyo         | 5     | 963925   
TOTAL         | 57    | 14371710 

It would save me a lot of time to directly format it like the following:

WORD          | COUNT | SUM      
Edinburgh     |     9 |  2092235  
London        |    12 |  3339260  
New York      |    11 |  3588090  
San Francisco |    14 |  3293475  
Sidney        |     2 |   181000   
Singapore     |     4 |   913725   
Tokyo         |     5 |   963925   
TOTAL         |    57 | 14371710 
@liangguohuan
Copy link

hi, you can do it like this:

:Tabularize /|/l2r2r2

@belisair
Copy link
Author

belisair commented Feb 4, 2015

Hi, thank you for you're input. If there is no possibility to set a default alignement for certain type (text, number, etc.), I will use this solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants