SpaceVim prints strange characters after startup

Created on 4 Mar 2017  Â·  3Comments  Â·  Source: SpaceVim/SpaceVim

When I start neovim, SpaceVim prints the following characters: [2 q

screenshot from 2017-03-04 16-44-27

Everything is fine when SpaceVim is uninstalled.

Environment Information

  • OS: Ubuntu 14.04
  • vim version:
  • neovim version: 0.1.7

The reproduce ways from Vim starting (Required!)

The characters are printed:

  • after I start nvim
  • everytime I type something in nvim
  • in my shell, just after I quit nvim
  • everytime I type something in my shell after I quit nvim

Output of the ":message" command, and ":echo SpaceVim#logger#viewLog()"

:echo SpaceVim#logger#### SpaceVim Options :

```viml
g:spacevim_enable_os_fileformat_icon = 0
g:spacevim_version = '0.2.0-dev'
g:spacevim_force_global_config = 0
g:spacevim_smartcloseignoreft = ['help']
g:spacevim_default_indent = 2
g:spacevim_enable_javacomplete2_py = 0
g:spacevim_enable_vimfiler_welcome = 1
g:spacevim_colorscheme_default = 'desert'
g:spacevim_warning_symbol = 'âš '
g:spacevim_simple_mode = 0
g:spacevim_colorscheme = 'gruvbox'
g:spacevim_enable_guicolors = 1
g:spacevim_custom_plugins = []
g:spacevim_hiddenfileinfo = 1
g:spacevim_error_symbol = '✖'
g:spacevim_vim_plug_installed = 0
g:spacevim_windows_leader = 's'
g:spacevim_wildignore = '/tmp/,.so,.swp,.zip,.class,tags,.jpg,.ttf,.TTF,.png,/target/,.git,.svn,.hg,.DS_Store'
g:spacevim_use_colorscheme = 1
g:spacevim_plugin_manager = 'dein'
g:spacevim_enable_neocomplcache = 0
g:spacevim_smartcloseignorewin = ['__Tagbar__', 'vimfiler:default']
g:spacevim_enable_debug = 0
g:spacevim_buffer_index_type = 0
g:spacevim_vim_help_language = 'en'
g:spacevim_lint_on_save = 1
g:spacevim_dein_installed = 1
g:spacevim_autocomplete_method = 'deoplete'
g:spacevim_unite_leader = 'f'
g:spacevim_enable_tabline_filetype_icon = 0
g:spacevim_enable_powerline_fonts = 1
g:spacevim_plugin_groups_exclude = []
g:spacevim_neobundle_installed = 0
g:spacevim_disabled_plugins = []
g:spacevim_guifont = ''
g:spacevim_plugin_groups = ['web', 'lang', 'edit', 'ui', 'tools', 'checkers', 'format', 'chat', 'git', 'javascript', 'ruby', 'python', 'scala', 'lang#go', 'lang#markdown', 'scm', 'editing', 'indents', 'navigatio
n', 'misc', 'core', 'unite', 'github', 'denite', 'ctrlp', 'autocomplete', 'nvim', 'linux', 'colorscheme']
g:spacevim_sidebar_width = 30
g:spacevim_enable_cursorline = 0
g:spacevim_enable_googlesuggest = 0
g:spacevim_language = ''
g:spacevim_enable_neomake = 1
g:spacevim_plugin_bundle_dir = '/home/freaxmind/.cache/vimfiles/'
g:spacevim_hosts_url = 'https://raw.githubusercontent.com/racaljk/hosts/master/hosts'
g:spacevim_altmoveignoreft = ['Tagbar', 'vimfiler']
g:spacevim_enable_cursorcolumn = 0
g:spacevim_realtime_leader_guide = 0
g:spacevim_enable_ycm = 0
g:spacevim_checkinstall = 1
g:spacevim_plugin_name = 'gruvbox'
g:spacevim_debug_level = 1
g:spacevim_filemanager = 'vimfiler'
g:spacevim_src_root = 'E:\sources'
g:spacevim_max_column = 120

```

SpaceVim Health checking :

SpaceVim clipboard support check report:
Checking +clipboard:
SUCCEED!
SpaceVim lua support check report:
Checking +lua:
Failed : Known issue, neovim do not support lua now.
SpaceVim python support check report:
Checking +python3:
SUCCEED!
Checking +python:
SUCCEED!

SpaceVim runtime log :

log [ SpaceVim ] : logger file /home/freaxmind/.SpaceVim/.SpaceVim.log does not exists, only log for current process will be shown!

Thank you for your help

Most helpful comment

That's most probably a Neovim issue: https://github.com/neovim/neovim/issues/5990

Neovim tries to be clever and changes the style of your cursor depending on the mode you're in. Not all terminal emulators support that, but those which don't, should simply ignore it.

In your case, the terminal emulator does _not_ ignore it and prints it to the screen (it thinks of it as normal characters).

In the meanwhile you should be able to disable it by putting this in your vimrc:

let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0

This tells Neovim not to try changing the cursor style.

All 3 comments

I can not reproduce it, I think it should be issue with terminal, can you check it in other terminal? or update you neovim?

That's most probably a Neovim issue: https://github.com/neovim/neovim/issues/5990

Neovim tries to be clever and changes the style of your cursor depending on the mode you're in. Not all terminal emulators support that, but those which don't, should simply ignore it.

In your case, the terminal emulator does _not_ ignore it and prints it to the screen (it thinks of it as normal characters).

In the meanwhile you should be able to disable it by putting this in your vimrc:

let $NVIM_TUI_ENABLE_CURSOR_SHAPE = 0

This tells Neovim not to try changing the cursor style.

@mhinz thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

linwaytin picture linwaytin  Â·  4Comments

Lobosque picture Lobosque  Â·  3Comments

jeremyf21 picture jeremyf21  Â·  5Comments

dzintars picture dzintars  Â·  3Comments

zeroasterisk picture zeroasterisk  Â·  5Comments