Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
capture to file output of :set all?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Erik  
View profile  
 More options Nov 17 2012, 4:22 pm
From: Erik <bits...@gmail.com>
Date: Sat, 17 Nov 2012 13:22:06 -0800 (PST)
Local: Sat, Nov 17 2012 4:22 pm
Subject: capture to file output of :set all?

I'm trying to troubleshoot why vim is behaving differently on different systems, and it would be really handy if i could dump all the settings to a text file for comparison. What's the recommended way of doing that? Or, alternatively, how can i see these settings from the command prompt without invoking vi?

Thanks,
e.l.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Salman Halim  
View profile  
 More options Nov 17 2012, 6:35 pm
From: Salman Halim <salmanha...@gmail.com>
Date: Sat, 17 Nov 2012 18:35:08 -0500
Local: Sat, Nov 17 2012 6:35 pm
Subject: Re: capture to file output of :set all?

On Saturday, November 17, 2012, Erik wrote:
> I'm trying to troubleshoot why vim is behaving differently on different
> systems, and it would be really handy if i could dump all the settings to a
> text file for comparison. What's the recommended way of doing that? Or,
> alternatively, how can i see these settings from the command prompt without
> invoking vi?

> Thanks,
> e.l.

:help :redir

You can redirect output of all subsequent commands into a file, variable or
register.

Don't forget :redir END at the end to turn it off.

Salman

--
سلمان حلیم


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik  
View profile  
 More options Nov 17 2012, 7:12 pm
From: Erik <bits...@gmail.com>
Date: Sat, 17 Nov 2012 16:12:34 -0800 (PST)
Local: Sat, Nov 17 2012 7:12 pm
Subject: Re: capture to file output of :set all?

Thanks, but:
 :help :redir
 E433: No tags file
 E149: Sorry, no help for :redir

 # yum install vim-common

 :help :redir
 E434: Can't find tag pattern

Found help here:
http://vim.wikia.com/wiki/Capture_ex_command_output

Then got:
 E475: Invalid argument: @a

Tried the alternate route in the Comments of the article but ultimately did not get the desired result in any discernible form. There was output about line counts but that was all.

Perhaps my shell/vi environment has been cocked up in some obscure way? I wouldn't rule that out.
If not, I believe this has departed significantly from the realm of "easy to do".

Not fun, but much quicker to do several mouse sweeps and copies and pastes from the terminal window. Result achieved. Moving on.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Beckett  
View profile  
 More options Nov 17 2012, 7:39 pm
From: "John Beckett" <johnb.beck...@gmail.com>
Date: Sun, 18 Nov 2012 11:38:53 +1100
Local: Sat, Nov 17 2012 7:38 pm
Subject: RE: capture to file output of :set all?

Erik wrote:
> Thanks, but:
>  :help :redir
>  E433: No tags file
>  E149: Sorry, no help for :redir

If your help was working, you could use:
    :help :helptags
to see:
    To rebuild the help tags in the runtime directory
    (requires write permission there):
        :helptags $VIMRUNTIME/doc

> Found help here:
> http://vim.wikia.com/wiki/Capture_ex_command_output

> Then got:
>  E475: Invalid argument: @a

If the following (from the tip) fails, I guess your Vim is
broken:
    :redir @a
    :set all
    :redir END

What does :version show (just the version number and patches
would be a start)?

John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options Nov 17 2012, 8:25 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Sat, 17 Nov 2012 17:25:45 -0800 (PST)
Local: Sat, Nov 17 2012 8:25 pm
Subject: Re: capture to file output of :set all?

On Saturday, November 17, 2012 3:22:06 PM UTC-6, Erik wrote:
> I'm trying to troubleshoot why vim is behaving differently on different systems, and it would be really handy if i could dump all the settings to a text file for comparison. What's the recommended way of doing that? Or, alternatively, how can i see these settings from the command prompt without invoking vi?

> Thanks,
> e.l.

In addition to suggestions in getting :redir working, you may get something of value from the :mkvimrc command.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Erik  
View profile  
 More options Nov 19 2012, 10:30 pm
From: Erik <bits...@gmail.com>
Date: Mon, 19 Nov 2012 19:30:41 -0800 (PST)
Local: Mon, Nov 19 2012 10:30 pm
Subject: Re: capture to file output of :set all?

This is quite bizarre. Seems like pretty much any command I enter (including :mkvimrc) does nothing. Instead of getting output or the intended effect on the text, the command just stays visible. I did have a .vimrc file with some settings; removed it for troubleshooting but it made no difference. What setting might disable the execution of commands? This is happening on CentOS 5.4 and CentOS 6.3; i have a BSD system and an Ubuntu system where it is not happening and the same commands execute fine.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Fritz  
View profile  
 More options Nov 19 2012, 10:48 pm
From: Ben Fritz <fritzophre...@gmail.com>
Date: Mon, 19 Nov 2012 19:48:10 -0800 (PST)
Local: Mon, Nov 19 2012 10:48 pm
Subject: Re: capture to file output of :set all?

On Monday, November 19, 2012 9:30:41 PM UTC-6, Erik wrote:
> This is quite bizarre. Seems like pretty much any command I enter (including :mkvimrc) does nothing. Instead of getting output or the intended effect on the text, the command just stays visible. I did have a .vimrc file with some settings; removed it for troubleshooting but it made no difference. What setting might disable the execution of commands? This is happening on CentOS 5.4 and CentOS 6.3; i have a BSD system and an Ubuntu system where it is not happening and the same commands execute fine.

No setting will do this. You probably have a tiny Vim. Or a different program that is not Vim at all. As John asked, what is the output of your :version command? Version number and patches and feature set (HUGE/BIG/NORMAL/SMALL/TINY) should do it.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »