You are not logged in.
For all those vim users out there who wish to have man pages open with vim by default, you just need to add the following line to your .bashrc or .bash_profile:
export MANPAGER="col -b | view -c 'set ft=man nomod nolist' -"
If you want your .vimrc to be read as well, just add the following before the `-c' in the above:
-u location of rc file
BTW, if anyone knows how to disable line numbers when using the above with a .vimrc containing set number , please let me know
.oO Komodo Dave Oo.
Offline
try:
export MANPAGER="col -b | vim -c 'set ft=man nonu nomod nolist' -"
the nonu should take care of removing line numbers
Offline
try:
export MANPAGER="col -b | vim -c 'set ft=man nonu nomod nolist' -"
the nonu should take care of removing line numbers
It's official - phrakture is THE vim guru
.oO Komodo Dave Oo.
Offline
phrakture is the everything guru. X11, CLI, VIM, ssh, network, lovemaking, organized crime, kernel hacking, etc.
everything except Java, that is.
Dusty
Offline
phrakture is the everything guru. X11, CLI, VIM, ssh, network, lovemaking, organized crime, kernel hacking, etc.
everything except Java, that is.
ROFL
I was forgetting
.oO Komodo Dave Oo.
Offline
... lovemaking ...
Am I the only one wondering how you know this fact?
Offline
phrakture is the everything guru. X11, CLI, VIM, ssh, network, lovemaking, organized crime, kernel hacking, etc.
Am I the only one wondering how you know this fact?
You weren't supposed to tell, schnookums!
Offline
Dusty wrote:phrakture is the everything guru. X11, CLI, VIM, ssh, network, lovemaking, organized crime, kernel hacking, etc.
arooaroo wrote:Am I the only one wondering how you know this fact?
You weren't supposed to tell, schnookums!
AHAHAHAHAHA, that has TOTALLY made my day
.oO Komodo Dave Oo.
Offline
For the record, there is also "manpageview.vim", on www.vim.org. However, for me it doesn't seem to properly remove the ^H characters from the page before displaying it.
I've been meaning to delve into it.
With manpager set like this, you cannot use "K" from within vim, thought you can with manpageview.
Offline
amazing trick, i like that very much, thanks!
Offline