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 './components/main';In this case, I want my statements to be aligned around from word.Like thisimport React                             from 'react';import { browserHistory, Router, Route } from 'react-router';import Main                              from './components/main';I have installed a plugin called tabular but I don't know how to align around a word. I can align around = or any other token but not around a word.
How to align statements around a particular word or token?
alignment;plugin tabular
The Tabular plugin works with regular expressions. So, you can give a word or a pattern, not just a single character.:Tabularize /from/will align in the way you wanted.You can find a great tutorial about Tabular on Vimcasts.