[CentOS] How to select a block in gnome-terminal or in vim

Ray Van Dolson rayvd at bludgeon.org
Thu Jan 8 02:04:05 UTC 2009

On Thu, Jan 08, 2009 at 09:57:51AM +0800, Xiaobo Zhu wrote:
> Hi,
> When I connect to a Cisco router and issue the show ip interface command, the
> output is similar as follows:
> Interface                  IP-Address      OK? Method Status               
> Protocol
> Ethernet0/0           YES NVRAM  up                   
> up     
> Serial0/0                  unassigned      YES NVRAM  administratively down
> down   
> Ethernet0/1               unassigned      YES NVRAM  administratively down
> down   
> Loopback0                 YES NVRAM  up                   
> up     
> Will anyone please tell me how to select text in block instead of line,  so
> that I can get the IP address on all interface, in gnome-terminal as well as in
> vim.
> Many thanks!
> Xiaobo

You should be able to do this in visual mode in VIM.  Paste your output
above into vim and then hit CTRL-C CTRL-V and select away.


More information about the CentOS mailing list