davidhalter / davidhalter/jedi-vim

Including python syntax sets conceillevel (bad interaction with LaTeX buffers)

Open
#440 7 comments 0 reactions 0 assignees View on GitHub
discussion
Dominant language
Python
Stars
5.3k
Forks
369
PR merge metrics
No merged PRs in 30d

Description

Hi ---
I have installed `jedi-vim` and I find it really nice to edit python files. But I came across a problem that I am unable to solve --- it makes editing of LaTeX files much more complex. The problem is the following. I have in my `.vimrc`:

```
Plug 'davidhalter/jedi-vim'
autocmd FileType python setlocal completeopt-=preview
```

And when I edit a LaTeX file, the `$...$` marks that define an inline math disappears unless the line is under the cursor. See:

Case 1, cursor in different line of the math formula (the cursor does not appear on screenshot, but believe me...)

![selection_036](https://cloud.githubusercontent.com/assets/6414907/8773950/d84d6838-2ed8-11e5-80ef-c24c3814cbfc.png)

Case 2, few instant after, cursor in the same line:

![selection_037](https://cloud.githubusercontent.com/assets/6414907/8773962/f4f523d6-2ed8-11e5-9d02-97d91bff34ac.png)

This make LaTeX files almost impossible to edit. Is there a way to restrict all of the `jedi-vim` effects to python buffers?

PD I checked that commenting out the plugin will remove the problem.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.