Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

E349: No identifier Under Cursor

Tags:

vim

Every time I switch back to vim window, it shows the list, if current cursor on an empty line, it shows error: E349: No identifier Under Cursor.

enter image description here

like image 368
Kaiyu Lee Avatar asked Apr 21 '17 03:04

Kaiyu Lee


4 Answers

The only workaround for this problem that I've discovered so far was to run tmux and then run vim inside one of tmux's panes.

like image 120
Tigran Aivazian Avatar answered Oct 20 '22 17:10

Tigran Aivazian


According to https://unix.stackexchange.com/a/480138 , it is the FocusIn/FocusOut mode that can be disabled with:

echo -ne '\e[?1004l'

I encountered this problem when I would lose an ssh connection, so tmux on the remote server that enabled FocusIn/FocusOut mode would not be able to disable it. If I opened a vim on my local machine, vim would receive those events. If the FocusIn/FocusOut mode is not the default for your terminal, you can also disable it with:

reset
like image 23
egrubbs Avatar answered Oct 20 '22 17:10

egrubbs


enter image description here

That list looks a lot like the output of :ilist! Plugin or [I with the cursor on Plugin or ]I with the cursor on the first Plugin. See if you don't have that somewhere in your vimrc (that you should append to your question, by the way).

The error message is likely caused by :help gd or :help gD.

like image 44
romainl Avatar answered Oct 20 '22 17:10

romainl


It caused by the wincent/terminus plugin.

Fixed

Append let g:TerminusFocusReporting=0 to .vimrc

like image 1
Kaiyu Lee Avatar answered Oct 20 '22 17:10

Kaiyu Lee