vim-devicons conflicts with hunk-jumping from vim-gitgutter in the NERDTree

Created on 14 Nov 2019  路  5Comments  路  Source: ryanoasis/vim-devicons

Required Info

  • [x] I have searched the issues for my issue and found nothing related and/or helpful
  • [x] I have read or at least glanced at the FAQ
  • [x] I have read or at least glanced at the Wiki
  • [x] VimDevIcons is the last loaded vim plugin?
  • [x] What version of vim are you using?

    • hint: vim --version

  • [x] What version of vim-devicons are you using?

    • hint: :echo webdevicons#version()

  • [x] Are you using vim from the terminal or a GUI vim?
  • [x] Are you using Mac, Linux or Windows?

Vim version: 8.1, huge version with GTK2 GUI
Vim-devicons version: 0.11.0
I am using vim from the terminal and am running a Linux machine (Ubuntu 16.04)

My issue involves being able to jump to the next and previous 'hunks' using ]c and [c through the vim-gitgutter plugin. I am able to do this in both the NERDTree viewer AND the code.

As soon as I include the vim-devicons plugin, however, even though I can still move between hunks in the code, I can no longer do so in the NERDTree viewer.

I've tested this to (the best of my knowledge) by making a bare vimrc (see attached) that just includes the NERDTree, gitgutter, nerdtree-git-plugin, and the devicons plugins. When I comment out the devicons plugin, it works fine.

Just to clarify, in the image below, when I place my cursor on line 4 then type ]c I can move to the next hunk so to speak as marked by the arrows. When I add the devicons plugin, this no longer works and the cursor just moves one line down while still printing the message "NERDTree: Jump to next hunk"

image

Great plugin though! Really enjoy using it. Please let me know if you can't recreate the issue

vim_version.txt
vimrc_bare.txt

unconfirmed bug

Most helpful comment

@justin-nguyen-1996 , please see here

All 5 comments

appreciate this report and the details! thanks. I don't have time right now but I'd like to dig in...

No worries! Thanks for getting back to me

@justin-nguyen-1996 , please see here

@Xuyuanp

Thanks for your report!

@justin-nguyen-1996

The nerdtree-git-plugin seems to have incorporated a new patch.
Does updating the plugin reproduce this bug?

No reply. I close this issue.
If you have any problems, feel free to reopen this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ntropia2 picture ntropia2  路  4Comments

slabua picture slabua  路  6Comments

Leeiio picture Leeiio  路  10Comments

wuqiong4945 picture wuqiong4945  路  7Comments

aminnairi picture aminnairi  路  4Comments