Questions tagged [plugin-tabular]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3
votes
1answer
80 views

How can I get Tabular to only work with certain lines and to use spaces as a delimiter?

How can I get Tabular.vim to only consider and affect lines that match /^item\s/, to use /\s\+/ as the delimiter, to left-align everything, and to use at least three spaces between words? For example:...
1
vote
0answers
41 views

editing cell blocks of text, within a pseudo tabular arrangement

I have two closely related questions: Is there a plugin, or a combination of vim commands, that allow something analogous to the insertion of a cell in a pseudo tabular arrangment of a text file, by "...
1
vote
1answer
182 views

How can I use Tabularize to align by spaces, but ignore spaces in end-of-line comments?

Simple question: I might have content formatted like item1 item2 # this is a comment longer_name1 foobarbaz # another comment that I want to see aligned as follows: item1 item2 # this is ...
1
vote
1answer
321 views

How can I right-align end-of-line comments with the Tabular plugin?

I often have code that looks something like this: a = 1 # description 1 longer_name = 2 # description 2 # no_longer_needed = 3 # ignore another_name = 4 # description 4 and would like to right-align ...
0
votes
3answers
549 views

How can I return the current filetype's comment character in vimscript?

Simple question. I want to use the Tabular plugin to right-align end-of-line comments for arbitrary filetypes, and for that I need to write a simple nnoremap that uses the current filetype's comment ...
0
votes
1answer
148 views

How do I use :Tabular only for delimiters after a certain pattern?

How can I use the Tabular plugin to align by ";" after "//"? With text: Line 1 ; B // Comment 1 ; Comment 2 Line 2 C // Comment 3 ; Comment 4 After running :Tabularize /; I get: Line 1 ...
0
votes
1answer
28 views

Tabularizing all Commas after `EST[`? [duplicate]

How do tabularize all commas after instances of EST[ so that text like Item 1 //EST[5555m, 6666m] Item 2 //EST[1m, 300m] gets transformed into something like: Item 1 //EST[5555m , 6666m] Item 2 //...
1
vote
2answers
47 views

Binding a Sequence of Tabularize Commands to One :Command

Is there a way to bind the sequence of commands :Tabularize /\/\/ :Tabularize /; in that order to the command :Command? EDIT: I attempted the solution and it failed: function! LineUp() normal :...
5
votes
1answer
405 views

How to align statements around a particular word or token?

I want to align my statements around a particular word or token. Example: import React from 'react'; import { browserHistory, Router, Route } from 'react-router'; import Main from ...
10
votes
1answer
891 views

How do I align C++ comments to be compliant with Google styling?

Any way to get Vim to format my comments to comply with Google cpplint? Top section is not compliant, to comply 5 changes are required. keep this comment at the same level Add a space after // add ...