Closed erthalion closed 8 years ago
Hum... Let me know
man
And what happen when you use export MANPAGER="vim -"
? Mine looks like the below thus I just remove ^H
(I substitute all backspace (^H) into ^H in below for visualization).
GIT(1) Git Manual GIT(1)
N^HNA^HAM^HME^HE
git - the stupid content tracker
S^HSY^HYN^HNO^HOP^HPS^HSI^HIS^HS
_^Hg_^Hi_^Ht [--version] [--help] [-C <path>] [-c <name>=<value>]
[--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
[-p|--paginate|--no-pager] [--no-replace-objects] [--bare]
[--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
<command> [<args>]
D^HDE^HES^HSC^HCR^HRI^HIP^HPT^HTI^HIO^HON^HN
Git is a fast, scalable, distributed revision control system with an unusually rich command set that provides both high-level operations and full access to internals.
See g^Hgi^Hit^Htt^Htu^Hut^Hto^Hor^Hri^Hia^Hal^Hl(7) to get started, then see E^HEv^Hve^Her^Hry^Hyd^Hda^Hay^Hy G^HGi^Hit^Ht[1] for a useful minimum set of commands. The G^HGi^Hit^Ht U^HUs^Hse^Her^Hr’^H’s^Hs M^HMa^Han^Hnu^Hua^Hal^Hl[2] has a more in-depth introduction.
After you mastered the basic concepts, you can come back to this page to learn what commands Git offers. You can learn more about individual Git commands with "git help command". g^Hgi^Hit^Htc^Hcl^Hli^Hi(7) manual page gives you an overview of the command-line command syntax.
Formatted and hyperlinked version of the latest Git documentation can be viewed at http://git-htmldocs.googlecode.com/git/git.html.
Well, let's see
$ cat /etc/gentoo-release
Gentoo Base System release 2.2
$ man --version
man 2.6.6
$ vim --version
VIM - Vi IMproved 7.4 (2013 Aug 10, compiled Jun 23 2015 16:43:09)
Included patches: 1-622
Modified by Gentoo-7.4.622
Compiled by erthalion@erthalion
Huge version without GUI. Features included (+) or not (-):
+acl +farsi +mouse_netterm +syntax
+arabic +file_in_path +mouse_sgr +tag_binary
+autocmd +find_in_path -mouse_sysmouse +tag_old_static
-balloon_eval +float +mouse_urxvt -tag_any_white
-browse +folding +mouse_xterm -tcl
++builtin_terms -footer +multi_byte +terminfo
+byte_offset +fork() +multi_lang +termresponse
+cindent +gettext -mzscheme +textobjects
+clientserver -hangul_input +netbeans_intg +title
+clipboard +iconv +path_extra -toolbar
+cmdline_compl +insert_expand -perl +user_commands
+cmdline_hist +jumplist +persistent_undo +vertsplit
+cmdline_info +keymap +postscript +virtualedit
+comments +langmap +printer +visual
+conceal +libcall +profile +visualextra
+cryptv +linebreak +python/dyn +viminfo
+cscope +lispindent +python3/dyn +vreplace
+cursorbind +listcmds +quickfix +wildignore
+cursorshape +localmap +reltime +wildmenu
+dialog_con -lua +rightleft +windows
+diff +menu +ruby +writebackup
+digraphs +mksession +scrollbind +X11
-dnd +modify_fname +signs +xfontset
-ebcdic +mouse +smartindent -xim
+emacs_tags -mouseshape -sniff +xsmp_interact
+eval +mouse_dec +startuptime +xterm_clipboard
+ex_extra -mouse_gpm +statusline -xterm_save
+extra_search -mouse_jsbterm -sun_workshop -xpm
system vimrc file: "/etc/vim/vimrc"
user vimrc file: "$HOME/.vimrc"
2nd user vimrc file: "~/.vim/vimrc"
user exrc file: "$HOME/.exrc"
fall-back for $VIM: "/usr/share/vim"
And about export MANPAGER="vim -"
- it's kinda interesting. Here is what I see with "vim -"
:
http://i.imgur.com/fYoA3w6.png
and here is what I see with "vim -c MANPAGER -"
http://i.imgur.com/pRgXJdB.png
There is only one difference, and it's about colors.
hum. prob color seq need to be removed. i'll fix it
Could you try https://github.com/lambdalisue/vim-manpager/tree/fix/issue1 to see if the change fix the problem. And also, please check :Man git
as well. I didn't put fix for :Man
command to see what happen.
I'm sorry. but what changes did you mean? I don't see any differences between master
and fix/issue1
.
oops. my bad. i'll push changes later.
I pushed so could you try @erthalion
Sorry for delay. Yes, it looks like everything is ok in the fix/issue1
branch.
Ok, I'll merge the change later :smile:
@lambdalisue TODO
Pushed. https://github.com/lambdalisue/vim-manpager/commit/65a5d0aee7fe636abb60df30287465ac0660ae43 Sorry for late push
I got this exact same error with gentoo using your updated code from https://github.com/lambdalisue/vim-manpager/commit/65a5d0aee7fe636abb60df30287465ac0660ae43
I fixed it by removing this from my ~/.bashrc
TERM=xterm-256color
And This command helps me out in my ~/.bashrc
export MANPAGER="vim -c MANPAGER -c ':set modifiable' -c ':on' -"
What it does is it makes the buffer modifiable, then gets rid of the other screens that pop open at the bottom because MANPAGER thinks it was called inside a file. ugly ass workaround, but it works.
I'm not sure, why (probably, I have some conflicting options in configuration), but I see escape codes in output:
Is there anything, that I've missed? I'm using NeoBundle: