-
Notifications
You must be signed in to change notification settings - Fork 258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird cursor behaviour when typing brackets or parenthesis #120
Comments
https://github.com/liuchengxu/space-vim/blob/master/layers/%2Bvim/programming/packages.vim#L13 , space-vim uses auto-pairs to obtain parentheses auto-closing when programming Layer enabled. Both auto-pairs and lexima.vim work well in my case, I can't reproduce your issue. Could you show me an example? And what's your |
Thanks for your quick reply! Not sure what my layer is, I'm just using the default install. Couldn't find any docs on how to enable different layers just now when doing a quick search. Take a look at this video, you can see how the cursor jumps back and forth: http://recordit.co/6OabGXCvaZ |
Also quick note. The brackets and parenthesis are not autoclosing. Have to close them manually. |
Try editing function! Layers()
" Default Layers
Layer 'fzf'
Layer 'unite'
Layer 'better-defaults'
" Add programming Layer
Layer 'programming'
endfunction Then you need to run Please refer to layer for more information. |
Added the programming layer and the issue is now fixed. Thank you so much @liuchengxu! Loving this vim setup, man! |
auto-pairs will help you to complete bracket when you type the first left symbol, but it won't help you to complete broken bracket. It is not an issue. |
For anyone who is having the same issue even when using stock Vim, this behaviour is caused by Check your .vimrc and see if its there, then remove it and the cursor should start acting normally again. |
Thank you, this solved my problem. |
I was experiencing very similar symptoms caused by |
Environment
Problem Description
Typing brackets or parenthesis results in a strange cursor behaviour.
Whenever brackets or parenthesis are closed, the cursor jumps back to the first bracket and then jumps in front after the closing bracket.
I was not able to figure out which plugin results in this behaviour.
Also, weird cursor behaviour with lexima.vim (bracket/parenthesis autoclosing) plugin installed, where the cursor flicks between being a line and a block when deleting in insert mode.
The text was updated successfully, but these errors were encountered: