[gedit-list] Using Vim plug-ins in Gedit



There are a few plugins I like using while formatting text. All of
them live inside my vim so I cobbled some bash together so I could
atleast use Align plugin in vim. Hopefully this will be useful enough
to use other plugins in vim that people may like.

Rather a small tip then anything else but.
----------------------------------------
#!/bin/bash
cat $GEDIT_SELECTED_TEXT > /tmp/align.vtest
vim -c '0,$Align =' -c 'wq' /tmp/align.vtest &>/dev/null
cat /tmp/align.vtest
rm /tmp/align.vtest
----------------------------------------
Input: Current selection
Output: Replace current selection
Applicability: All documents

Thanks,
Joseph Montanez


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]