fisa-vim-config icon indicating copy to clipboard operation
fisa-vim-config copied to clipboard

vim-isort cause strange issue

Open a3linux opened this issue 11 years ago • 8 comments

Uploading Selection_052.png . . . I update vim-isort this week and my vim has strange issue that, when I input e.x. from django. the input cursor will go to next third line, but it is not actually skip 3 lines. And it is syntax error show in the message window. It is ok for me if I removed vim-isort. I am not sure if it is fisa-vim-config issue or vim-isort issue itself. Anyone have idea with this?

a3linux avatar Apr 03 '14 13:04 a3linux

selection_052 Updated the screenshot.

a3linux avatar Apr 03 '14 13:04 a3linux

Hmm, wasn't able to reproduce it here. Do you have a small python example in which this happens? And which version of vim are you using?

fisadev avatar Apr 09 '14 14:04 fisadev

Also, which terminal are you using? And are you using tmux or screen?

fisadev avatar Apr 09 '14 14:04 fisadev

I am using vim 7.4.179 on Fedora 20. Yeah. I am using tmux. My major terminal is guake. And I tested with some other terminal(s) without tmux.

I will do a test tomorrow with small python example file and paste a new screenshot then.

Thanks.

Best Regards!

Allen Chen 陈金龙 MP: +86 186 2159 1967

On Wed, Apr 9, 2014 at 10:45 PM, Juan Pedro Fisanotti < [email protected]> wrote:

Also, which terminal are you using? And are you using tmux or screen?

— Reply to this email directly or view it on GitHubhttps://github.com/fisadev/fisa-vim-config/issues/67#issuecomment-39972313 .

a3linux avatar Apr 09 '14 15:04 a3linux

If possible, instead of pasting a screenshot, upload the python script to a place where I can download it. Maybe http://linkode.org ? Thanks for the help! :)

fisadev avatar Apr 09 '14 15:04 fisadev

Hmm, there is another person who is having the same issue, but not sure it's related to vim-isort. But still, unable to reproduce it here. I need to be able to reproduce it, so I can debug and find the culprit.

fisadev avatar Apr 10 '14 00:04 fisadev

Hi Juan Pedro Fisanotti,

My Environment for testing, Fedora 20 X86_64 Python 2.7.5 with Vim 7.4.179 All the applications coming from Fedora official repository.

No Tmux or screen used. Only VIM with general terminal(Terminator) The simple test.py I used to reproduce it as following, screenshot is attached. What I did is , At the line 6, insert from django. after the . input, auto complete works and the input cursor skipped as the screenshot shown.

Hope this is useful as I remove the vim-isort in my .vimrc and BundleClean, it is ok for me with the same file same action. .

1import logging 2 import re 3 import sys 4 from django.contrib.auth import User 5 from django.utils.translation import ugettex_lazy as _ 6 7 logger = logging.getLogger(name) 8 9 logger.debug() 10 sys.pow(2) 11 ret = {}

Best Regards!

Allen Chen 陈金龙 MP: +86 186 2159 1967

On Thu, Apr 10, 2014 at 8:43 AM, Juan Pedro Fisanotti < [email protected]> wrote:

Hmm, there is another person who is having the same issue, but not sure it's related to vim-isort. But still, unable to reproduce it here. I need to be able to reproduce it, so I can debug and find the culprit.

— Reply to this email directly or view it on GitHubhttps://github.com/fisadev/fisa-vim-config/issues/67#issuecomment-40032577 .

a3linux avatar Apr 10 '14 08:04 a3linux

I tried with that example, on the same version of vim, under terminator, and no luck, still doesn't happen here :/ So it will be difficult to fix. But let's try something.

Try disabling the visual mapping for vim-isort. Add this to your .vimrc, then restart vim and try to reproduce the bug:

let g:vim_isort_map = ''

fisadev avatar Apr 10 '14 17:04 fisadev