Xiaobo Zhu
2009-Jan-08 01:57 UTC
[CentOS] How to select a block in gnome-terminal or in vim
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 192.168.12.1 YES NVRAM up up Serial0/0 unassigned YES NVRAM administratively down down Ethernet0/1 unassigned YES NVRAM administratively down down Loopback0 1.1.1.1 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.centos.org/pipermail/centos/attachments/20090108/8a195a1f/attachment-0004.html>
Ray Van Dolson
2009-Jan-08 02:04 UTC
[CentOS] How to select a block in gnome-terminal or in vim
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 192.168.12.1 YES NVRAM up > up > Serial0/0 unassigned YES NVRAM administratively down > down > Ethernet0/1 unassigned YES NVRAM administratively down > down > Loopback0 1.1.1.1 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! > > XiaoboYou 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. Ray
Ignacio Vazquez-Abrams
2009-Jan-08 02:56 UTC
[CentOS] How to select a block in gnome-terminal or in vim
On Thu, 2009-01-08 at 09:57 +0800, Xiaobo Zhu wrote:> 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.Hold down Ctrl to select a block in gnome-terminal. -- Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> PLEASE don't CC me; I'm already subscribed -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part URL: <http://lists.centos.org/pipermail/centos/attachments/20090107/ff10216b/attachment-0004.sig>
Thomas Iverson
2009-Jan-08 03:15 UTC
[CentOS] How to select a block in gnome-terminal or in vim
On Thu, Jan 8, 2009 at 10:56 AM, Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> wrote:> On Thu, 2009-01-08 at 09:57 +0800, Xiaobo Zhu wrote: >> 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. > > Hold down Ctrl to select a block in gnome-terminal. > > -- > Ignacio Vazquez-Abrams <ivazqueznet at gmail.com> > > PLEASE don't CC me; I'm already subscribed > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >Try "set mouse=a" in your vimrc first -- Keep It Simple Stupid http://www.ghostunix.org