Skip to content

Dots after icons in NERDTree, only in GVim #110

Closed

Description

@KabbAmine

First of all, thanks for your awesome plugin.

With GVim, I had the same problem as the one in #84 ...

devicon1

... and unsetting list in nerdtree's buffer solved it.

autocmd FileType nerdtree setlocal nolist

devicon2

It will be good then to add this workaround in the README.

Activity

  1. ryanoasis commented on Aug 29, 2015

    @ryanoasis
    Owner

    Thanks for this! I will at least add to readme as you suggested 😄

  2. KabbAmine commented on Aug 29, 2015

    @KabbAmine
    Author

    Good 😃 You'll close the issue when the README will be updated then.

  3. ryanoasis commented on Aug 29, 2015

    @ryanoasis
    Owner

    Yep 👍

  4. added this to the v0.7.0 milestone on Nov 20, 2015
  5. added a commit that references this issue on Nov 21, 2015
    14e2793
  6. vohtaski commented on Apr 14, 2016

    @vohtaski

    I have exactly the same issue. Everything is fine in terminal
    but is cut in MacVim (7.4).

    I tried the proposed solution to add autocmd FileType nerdtree setlocal nolist to my .vimrc,
    but with no success.

    Are there some additional settings that I can try?
    BTW, the icons are cut not only in NERDTree but also in vim-airline.

    screen shot 2016-04-14 at 22 59 36 pm

  7. vohtaski commented on Apr 14, 2016

    @vohtaski

    actually I just noticed that there are dots.

    In my case, there is not dots. Just cut icon, so maybe it's another issue

  8. ryanoasis commented on Apr 14, 2016

    @ryanoasis
    Owner

    Uh oh 😢

    You can try tweaking this fix in the code to see if it gives any more clues: https://github.com/ryanoasis/vim-devicons/blob/master/plugin/webdevicons.vim#L557-L559

    Other than that there are other settings but I don't see they would help: g:WebDevIconsUnicodeGlyphDoubleWidth, WebDevIconsNerdTreeAfterGlyphPadding

  9. vohtaski commented on Apr 14, 2016

    @vohtaski

    I checked your code and it looks the problem might be with fonts or MacVim, because even in the code it's cut:
    screen shot 2016-04-14 at 23 46 47 pm

  10. ryanoasis commented on Apr 15, 2016

    @ryanoasis
    Owner

    Hmm yes actually that is how I usually see it too because they are double width characters so they get a little messed up when viewed without any applied "fix" to their display.

    Can you try to see if this helps things: :set ambiwidth=double

    edit:

    Also not sure but this (executing ga on the cut off 'part') might be helpful: #84 (comment)

  11. vohtaski commented on Apr 15, 2016

    @vohtaski

    Thanks a lot @ryanoasis !
    :set ambiwidth=double did the trick. It works now!

  12. ryanoasis commented on Apr 15, 2016

    @ryanoasis
    Owner

    @vohtaski Cool I am glad that actually worked for you, it also worked for me but caused some issues regarding powerline symbols using Airline:

    selection_15_04_16_11 48 43_663x156_001

  13. vohtaski commented on Apr 18, 2016

    @vohtaski

    @ryanoasis Yep, I had the same issue, the bigger problem is that it also broke the indentLine plugin :(

  14. ryanoasis commented on May 13, 2016

    @ryanoasis
    Owner

    @vohtaski could you paste the output of :version for macvim?

    I'm particular I want see which patches you have.
    Thanks

  15. vohtaski commented on May 13, 2016

    @vohtaski

    here it is:

    :version
    VIM - Vi IMproved 7.4 (2013 Aug 10, compiled May  4 2016 17:30:35)
    MacOS X (unix) version
    Included patches: 1-1816
    Compiled by _spotlight@Traviss-Mac-369.local
    Huge version with MacVim GUI.  Features included (+) or not (-):
    +acl             +dialog_con_gui  +insert_expand   +mouse_sgr       +rightleft       +transparency
    +arabic          +diff            +job             -mouse_sysmouse  +ruby/dyn        +user_commands
    +autocmd         +digraphs        +jumplist        +mouse_urxvt     +scrollbind      +vertsplit
    +balloon_eval    +dnd             +keymap          +mouse_xterm     +signs           +virtualedit
    +browse          -ebcdic          +langmap         +multi_byte      +smartindent     +visual
    ++builtin_terms  +emacs_tags      +libcall         +multi_lang      +startuptime     +visualextra
    +byte_offset     +eval            +linebreak       -mzscheme        +statusline      +viminfo
    +channel         +ex_extra        +lispindent      +netbeans_intg   -sun_workshop    +vreplace
    +cindent         +extra_search    +listcmds        +odbeditor       +syntax          +wildignore
    +clientserver    +farsi           +localmap        +packages        +tag_binary      +wildmenu
    +clipboard       +file_in_path    +lua/dyn         +path_extra      +tag_old_static  +windows
    +cmdline_compl   +find_in_path    +menu            +perl/dyn        -tag_any_white   +writebackup
    +cmdline_hist    +float           +mksession       +persistent_undo -tcl             -X11
    +cmdline_info    +folding         +modify_fname    +postscript      +termguicolors   -xfontset
    +comments        -footer          +mouse           +printer         +terminfo        +xim
    +conceal         +fork()          +mouseshape      +profile         +termresponse    -xsmp
    +cryptv          +fullscreen      +mouse_dec       +python/dyn      +textobjects     -xterm_clipboard
    +cscope          -gettext         -mouse_gpm       +python3/dyn     +timers          -xterm_save
    +cursorbind      -hangul_input    -mouse_jsbterm   +quickfix        +title           -xpm
    +cursorshape     +iconv           +mouse_netterm   +reltime         +toolbar
       system vimrc file: "$VIM/vimrc"
         user vimrc file: "$HOME/.vimrc"
     2nd user vimrc file: "~/.vim/vimrc"
          user exrc file: "$HOME/.exrc"
      system gvimrc file: "$VIM/gvimrc"
        user gvimrc file: "$HOME/.gvimrc"
    2nd user gvimrc file: "~/.vim/gvimrc"
        system menu file: "$VIMRUNTIME/menu.vim"
      fall-back for $VIM: "/Applications/MacVim.app/Contents/Resources/vim"
    Compilation: clang -c -I. -Iproto -DHAVE_CONFIG_H -DFEAT_GUI_MACVIM -Wall -Wno-unknown-pragmas -pipe  -DMACOS_
    X_UNIX  -g -O2 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1
    Linking: clang   -L. -L/usr/local/lib -L. -L/usr/local/lib  -L/usr/local/lib -o Vim -framework Cocoa -framewor
    k Carbon       -lm  -lncurses -liconv -framework Cocoa   -fstack-protector  -L/System/Library/Perl/5.16/darwin
    -thread-multi-2level/CORE
    
  16. ryanoasis commented on May 14, 2016

    @ryanoasis
    Owner

    @vohtaski Thanks

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

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions