On Fri, Jun 14, 2019 at 06:29:46PM -0500, tooth pik wrote:
> inside vim :ver has been beautified to list features in as many columns as will
> fit the window, but out at the bash prompt vim --version seems limited to four
> columns of features, causing the display to scroll off the top of my screen if i
> let --version print all of the Compilation and Linking lines
>
> i have attempted to make those last two lines readable with
>
> vim --version | awk '!/^Compilation/ && !/Linking/'
> vim --version | grep '^Compilation' | fmt -w $(( $(tput cols) - 2 ))
> vim --version | grep '^Linking' | fmt -w $(( $(tput cols) - 2 ))
>
> if i want it to fit do i need to write a script to capture the
> --version output and
> perform some parsing and tabling magic or is there an option to tell vim to
> query the system with maybe a call to tput cols
Maybe
vim --cmd ":version | :q"
will do what you need?
Danek
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20190614235746.GA30825%40comfychair.org.
For more options, visit https://groups.google.com/d/optout.
Friday, June 14, 2019
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment