Manpage inside Vim

2011-02-02 Thread Ajay Jain
Hi, I want to be able to open a manpage using VIM without exiting it. For example .. I want to able to do something like: vim dumm.c :tabe man ls . Is this possible? Regards, Ajay. -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the te

Re: Manpage inside Vim

2011-02-02 Thread Daniel Corrêa
On 02/02/11 10:19, Ajay Jain wrote: Hi, I want to be able to open a manpage using VIM without exiting it. For example .. I want to able to do something like: vim dumm.c :tabe man ls . Is this possible? Regards, Ajay. Try: :tabnew | silent !man Cheers, Daniel ---

Re: Manpage inside Vim

2011-02-02 Thread Steve Laurie
On 02/02/11 23:19, Ajay Jain wrote: Hi, I want to be able to open a manpage using VIM without exiting it. For example .. I want to able to do something like: vim dumm.c :tabe man ls . Is this possible? Regards, Ajay. If you put the cursor on the word/statement/command for example "u

Re: Manpage inside Vim

2011-02-02 Thread Marco
On 2011-02-02 Daniel Corrêa wrote: > Try: > > :tabnew | silent !man If i execute !man ls I get the message: WARNING: terminal is not fully functional and the displayed man page looks distorted in gvim. Why? I opened up (gnome-terminal, urxvt, xterm) opened gvim and executed !man ls If

Re: Manpage inside Vim

2011-02-02 Thread sergio
On 02/02/2011 03:19 PM, Ajay Jain wrote: I want to be able to open a manpage using VIM without exiting it. Have you tied to find answer by yourself? I've newer thought to read man from vim, but have found answer in five seconds: :help :Man It it not very difficult, right? -- sergio. -- Y

Re: Manpage inside Vim

2011-02-02 Thread Joan Miquel Torres Rigo
2011/2/2 Marco : > On 2011-02-02 Daniel Corrêa wrote: > >> Try: >> >>      :tabnew | silent !man > > If i execute !man ls I get the message: > > WARNING: terminal is not fully functional > > and the displayed man page looks distorted in gvim. Why? This is not (exactly) a vim issue but man pager'

Re: Manpage inside Vim

2011-02-02 Thread Christian Brabandt
On Wed, February 2, 2011 3:04 pm, Joan Miquel Torres Rigo wrote: > Did you try to run gvim from terminal and try again? > > In any case, you could avoid this problem by specifying TERM value in > command line or setting this environment variable from within vim (I > don't know, but must be possible

Re: Manpage inside Vim

2011-02-02 Thread Charles Campbell
Ajay Jain wrote: Hi, I want to be able to open a manpage using VIM without exiting it. For example .. I want to able to do something like: vim dumm.c :tabe man ls . Is this possible? Perhaps Manpageview will do what you want; :Man ls Manpageview is available at: http://mys

Re: Manpage inside Vim

2011-02-02 Thread Daniel Corrêa
On 02/02/11 12:03, sergio wrote: On 02/02/2011 03:19 PM, Ajay Jain wrote: I want to be able to open a manpage using VIM without exiting it. Have you tied to find answer by yourself? I've newer thought to read man from vim, but have found answer in five seconds: :help :Man It it not very d

Re: Manpage inside Vim

2011-02-02 Thread Marco
On 2011-02-02 Joan Miquel Torres Rigo wrote: > Gvim isn't terminal application and you probably did'nt call it from > terminal Yes, I did call it from gnome-terminal, urxvt and xterm. > aren't terminals and doesn't export any value for TERM environment > variable. TERM is set to xterm. > Did yo

Re: Manpage inside Vim

2011-02-02 Thread Joan Miquel Torres Rigo
2011/2/2 Marco : > On 2011-02-02 Joan Miquel Torres Rigo wrote: > >> Gvim isn't terminal application and you probably did'nt call it from >> terminal > Yes, I did call it from gnome-terminal, urxvt and xterm. > >> aren't terminals and doesn't export any value for TERM environment >> variable. > TE

Re: Manpage inside Vim

2011-02-03 Thread Marco
On 2011-02-03 Joan Miquel Torres Rigo wrote: > >> aren't terminals and doesn't export any value for TERM environment > >> variable. > > TERM is set to xterm. > > Of course, > > as Christian said, gvim don't use external terminal emulator but its > own one and it is not fully functional. Now I

Re: Manpage inside Vim

2011-02-03 Thread Joan Miquel Torres Rigo
2011/2/3 Marco : >> Anyway, in this case, if TERM is set to xterm, then less will think >> that terminal is fully functional. This is one of the reasons for which I dislike gvim. > >> >> Fore example: >> >> :!TERM=xterm man ls >> > Doesn't work, either. >> >> Ok. But try now with 'dumb'. > > Sam

Re: Manpage inside Vim

2011-02-03 Thread Marco
On 2011-02-03 Joan Miquel Torres Rigo wrote: > >> >> Fore example: > >> >> :!TERM=xterm man ls > >> > Doesn't work, either. > >> > >> Ok. But try now with 'dumb'. > > > > Same result. > > Maybe you can try a slightly different strategy like > > :tabedit | :r ! man ls Works. Thanks Marco --

Re: Manpage inside Vim

2011-02-03 Thread Bee
On Feb 3, 6:12 am, Marco wrote: > On 2011-02-03 Joan Miquel Torres Rigo wrote: > > > >> >> Fore example: > > >> >> :!TERM=xterm man ls > > >> > Doesn't work, either. > > > >> Ok. But try now with 'dumb'. > > > > Same result. > > > Maybe you can try a slightly different strategy like > > > :tabedi

Re: Manpage inside Vim

2011-02-03 Thread sc
On Thursday 03 February 2011 09:57:34 Bee wrote: > I have add the following function to .profile then from a > terminal command line it makes a clean text file in terminal > vim. Maybe parts of it can be incorporated in the command > from Joan Miquel Torres Rigo. > vman() { man "$@" | col -bx |