Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
541 views
in Technique[技术] by (71.8m points)

why jedi-vim goto definitions or assignment not working?

There are two python files as below.

$cat repo.py
class A(object):
        attr_a = 'a'


$cat run.py
from repo import A
inst = A()
print inst.attr_a

My vimrc is like below

$cat ~/.vimrc
let mapleader=","

Accorindg to the jedi-vim docs, "<leader>d" will goto the definiation of variable. So I tried

Step1 vim open run.py

Step2 use : + enter goto command mode

Step3 input ,d A try to goto source code of A. But failed. (I have set leader to be , in .vimrc)

The actual result is that I deleted one line. It seems the vim still translate the d as the delete command. So why?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...