fisadev / vim-isort

Vim plugin to sort python imports using https://github.com/timothycrosley/isort
MIT License
219 stars 32 forks source link

Cursor jumps to the first line after sorting #15

Closed yevhen-m closed 7 years ago

yevhen-m commented 7 years ago

After I sort imports, cursor jumps to the first line. Is it possible to put it back after sorting where it was before sorting?

yevhen-m commented 7 years ago

Thanks, no longer have this issue.

im-n1 commented 4 years ago

I'm facing this issue. How did u @yevhen-m solved this?

tgy commented 4 years ago

same. this should be re-opened

rronan commented 4 years ago

I face the same issue.

I happens only with multi-line imports: e.g., I import several variables from one module, line is too long and splitted in multiple lines.

I think it should be re-opened

rronan commented 4 years ago

let g:vim_isort_config_overrides = {'multi_line_output': 3} seems to work

(it changes the format of multi line imports but that's fine with me, at least)

tgy commented 4 years ago

thanks, i'm running black right after isort so i don't really care about isort's formatting 😄

patroqueeet commented 3 years ago

@rronan did help for me with black/isort...