indentLine icon indicating copy to clipboard operation
indentLine copied to clipboard

Cursor not reaching the end of the line

Open mkolodny opened this issue 11 years ago • 7 comments

When the focus is at the end of the line, and the line is indented, the cursor doesn't reach the end of the line. For example, if the line is indented twice, when the focus is at the end of the line, the cursor is two characters before the end of the line. I'm using vim 7.4.258, and iTerm 2.0.

mkolodny avatar Sep 13 '14 21:09 mkolodny

I have a similar pb with the cursor

arnauddri avatar Sep 27 '14 09:09 arnauddri

to fix it, I added: let g:indentLine_noConcealCursor=1

It fixes the cursor issue but it raises another one. If the line is indented and the cursor is on it, it displays it a bit too much on the left. The problem is even worse when the line has a deep indentation. How can I fix this?

arnauddri avatar Sep 27 '14 09:09 arnauddri

I can't understand your description quite well, could you give a screenshort?

Yggdroot avatar Nov 25 '14 09:11 Yggdroot

I used the plugin indentLine. A strange thing happened today. When I create a new file with VIM, then copy and paste some python scripts. I see it automatically add a parentheses last line when I move the cursor to one parentheses.

root@test:~# cat 3.txt 
import os
import sys

pth = "C:\Users\Test"
dir_show = os.listdir(pth)

for list_file in dir_show:
    if list_file.endswith(".JPG"):
        (shrname, exts) = os.path.splitext(list_file)
        path = os.path.join(pth, list_file)
        newname=os.path.join(pth,shrname[shrname.find(".")+1:len(shrname)]+".JPG")
        os.rename(path,newname)

vim 3.txt img

zibuyule avatar Aug 30 '16 09:08 zibuyule

@zibuyule I don't think your issue is related to indentLine.

Yggdroot avatar Aug 30 '16 10:08 Yggdroot

It is nice after I disabled the indentLine plugin. So I think my issue is related to indenetLine.

zibuyule avatar Aug 30 '16 10:08 zibuyule

Same issue here. When I want to moving to end of line, the cursor is not moving to end of line, but end of line minus the number of indentations. If you start to insert text at the end of line, the cursors drags a few characters behind.

EDIT: after restarting vim, it works correctly. I had reloaded my vimrc from vim a few times, so maybe the issue is related to this.

leonardschneider avatar Apr 02 '17 22:04 leonardschneider