Skip to content

VIM outputs control characters #48

Description

@shahab-vahedi

It's been a few days that I noticed when closing VIM, I see something like below in my terminal:

❯ vim
�[>4;m�[>4;2m

I have narrowed down the problem to the following line in my .vimrc:

runtime! ftplugin/man.vim

Environment

VIM

:version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Sep 13 2020 06:08:43)
Included patches: 1-1666
Compiled by void-buildslave@a-hel-fi
Huge version without GUI.  Features included (+) or not (-):
+acl               -dnd               +listcmds          +postscript        +textobjects
+arabic            -ebcdic            +localmap          +printer           +textprop
+autocmd           +emacs_tags        +lua               +profile           +timers
+autochdir         +eval              +menu              -python            +title
-autoservername    +ex_extra          +mksession         +python3           -toolbar
-balloon_eval      +extra_search      +modify_fname      +quickfix          +user_commands
+balloon_eval_term -farsi             +mouse             +reltime           +vartabs
-browse            +file_in_path      -mouseshape        +rightleft         +vertsplit
++builtin_terms    +find_in_path      +mouse_dec         +ruby              +virtualedit
+byte_offset       +float             -mouse_gpm         +scrollbind        +visual
+channel           +folding           -mouse_jsbterm     +signs             +visualextra
+cindent           -footer            +mouse_netterm     +smartindent       +viminfo
+clientserver      +fork()            +mouse_sgr         -sound             +vreplace
+clipboard         +gettext           -mouse_sysmouse    +spell             +wildignore
+cmdline_compl     -hangul_input      +mouse_urxvt       +startuptime       +wildmenu
+cmdline_hist      +iconv             +mouse_xterm       +statusline        +windows
+cmdline_info      +insert_expand     +multi_byte        -sun_workshop      +writebackup
+comments          +ipv6              +multi_lang        +syntax            +X11
+conceal           +job               -mzscheme          +tag_binary        +xfontset
+cryptv            +jumplist          +netbeans_intg     -tag_old_static    -xim
+cscope            +keymap            +num64             -tag_any_white     -xpm
+cursorbind        +lambda            +packages          -tcl               +xsmp_interact
+cursorshape       +langmap           +path_extra        +termguicolors     +xterm_clipboard
+dialog_con        +libcall           +perl              +terminal          -xterm_save
+diff              +linebreak         +persistent_undo   +terminfo
+digraphs          +lispindent        +popupwin          +termresponse
   system vimrc file: "$VIM/vimrc"
     user vimrc file: "$HOME/.vimrc"
 2nd user vimrc file: "~/.vim/vimrc"
      user exrc file: "$HOME/.exrc"
       defaults file: "$VIMRUNTIME/defaults.vim"
  fall-back for $VIM: "/usr/share/vim"
Compilation: cc -c -I. -Iproto -DHAVE_CONFIG_H     -fstack-clash-protection -mtune=generic -O2 -pip
e   -g -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
Linking: cc   -L. -Wl,-z,relro -Wl,-z,now     -fstack-protector-strong -rdynamic -Wl,-export-dynami
c -Wl,-E  -Wl,-z,relro -Wl,-z,now     -L/usr/local/lib -Wl,--as-needed -o vim    -lSM -lICE -lXt -l
X11 -lXdmcp -lSM -lICE  -lm -lelf   -lncursesw -lacl -lattr -ldl  -L/usr/lib -llua -Wl,-E -Wl,-z,re
lro -Wl,-z,now -Wl,--as-needed     -pthread  -L/usr/lib/perl5/core_perl/CORE -lperl -lm -lcrypt -lp
thread -ldl  -L/usr/lib/python3.8/config-3.8-x86_64-linux-gnu -lpython3.8 -lcrypt -lpthread -ldl -l
util -lm -lm  -lruby -lm

Terminal

termite v15-5-g9565563
TERM=xterm-termite
https://raw.githubusercontent.com/thestinger/termite/master/termite.terminfo

Shell

zsh 5.8 (x86_64-unknown-linux-gnu)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions