-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
jump to start of line not working #4308
Comments
Sounds like a termcap or other configuration issue. There are existing closed issues related to this, but it's long been solved. #2028 |
@justinmk I'm seeing this issue too, on Ubuntu 15.04. I hear you say that this has "long been solved," but if so, why are people suddenly reporting this bug again? I think either it was never solved in linux or there has been a regression. What should I do now? Though "it's long been solved", it's clearly broken for me and some other linux users. Will filing a new bug help? I can reproduce in Ubuntu 15.04 in tmux using neovim Ubuntu build 0.1.2ubuntu1+git201603111733+2366+17~ubuntu15.04.1. |
What are the repro steps using |
Steps:
Expected behavior: cursor moves over "1" |
Unless this problem is present for all users of xterm or all users of gnome-terminal, those repro steps don't provide enough information (version of As I said above, most likely this is a terminfo issue: dependent on your distro and/or your own configuration. |
Presumably, you don't have xterm or gnome-terminal because you're using a Mac. All the people reporting this issue lately have not been using Macs. The reporter of this issue is using FreeBSD. I'm using Ubuntu 15.04. The people complaining in linked issue #2028 are using "ubuntu 15.04", "ubuntu 16.04", "Ubuntu 14.04", and "Junest". Those reproduction steps seem to happen for a fair number of users of linux--you've now gotten 6 bug reports for the same problem since December. My guess is that there is no issue when running NeoVim in tmux on a Mac. That's great. However, I wish you would not dismiss the issue just because you're having no problem when using it on a different system. |
I just tried this on gnome-terminal (vte3 0.42.4)/tmux and I can't reproduce it. |
Hmm. It looks like even when I run Perhaps that's true for other people who've had this problem? @Gibheer and @marcosnils, you're the most recent reporters--can you experiment with |
@leon-barrett @justinmk my TERM is set to xterm-256color. I need it this way as there are some stuff (like vim color scheme) which needs this variable to render properly. Using classic vim I didn't have any problems with this, in neovim it's not working. |
@marcosnils If you have
Only the |
< End > doesn't work either |
@marcosnils in insert modo what is the out put |
@wsdjeg |
@leon-barrett as I know in ubuntu 14.04 gnome-terminal do not works well, you can not use ctrl+home goto the gegin of the file ,also can not use ctrl+end goto the end if the file,but home and end should works well,by the way ,I think you can update you gnome-terminal to 3.16.2,it is the best version I use. |
@marcosnils so that is why you can not use home goto the begin of the line,the terminal send wrong char to neovim |
@wsdjeg my bad, I wasn't pressing the correct combination. |
sorry I do not use tmux,and my os is ubuntu 15.10 gnome-terminal 3.16.2, everything works well ,so I can not confirm it is an issue of neovim. |
@marcosnils In the other issue you mentioned you're using tmux. So you have |
@justinmk just confirmed that if I change the TERM to |
Ok. Try |
@justinmk Thanks for adding it to the wiki. |
I don't want to open yet a bug report, but I still have this issue. The bug seems to come from these lines in my
I had to put them to get another application to work (fzf) Everything works fine in tmux (screen-256color).
I'm really at a loss there, so if anyone has any tips on how to get out of this mess, I'd appreciate it. |
We don't have very good support for rxvt right now. I have a question: What is the reason for using rxvt these days? Only reason I ever heard was "it's, like, fast", but I doubt very much that there are not xterm-compatible alternatives that are as "fast" and have similar features. I genuinely would like to find out if there is a reason for us to spend time trying to support rxvt and its variants. |
Honestly, mostly for a few scripts that I have keybound. They allow me to cut/paste, open url, change font size etc.. from the keyboard. Also, I use i3 (window manager only, no desktop env), and the 'all keyboard" integrates nicely with my workflow, and urxvt doesn't require my installing gnome or kde or whatever. I haven't tried to change for a little while, so these maybe solved. I have no idea how widespread urxvt usage is, but I work at a small company and the other two guys were also using urxvt when I arrived. Do you have any suggestions on which terms I could try to move to? |
I've heard good things about http://st.suckless.org . The readme mentions clipboard support.
Isn't |
what I mean is that I press a shortcut and I can select a url in the history and then it opens it via xdg-open. No need for a mouse. I'll take a look but I seem to recall |
For future reference, @guiniol's problem was resolved here: junegunn/fzf#279 (comment) |
@justinmk thanks. Forgot to mention it... EDIT: reading the code from fzf, it seems that it assumes the values of escape sequences instead of getting them from terminfo, so that's the source of the problem here. |
I fixed my issue by removing |
Looks like I'm having a similar issue in a similar environment. I have FreeBSD 12-CURRENT, tmux, rxvt, nvim 0.2.0. I have When I'm running Home: nothing though: Ctrl-Home: Any ideas what could be wrong here?
PS Home/End keys work fine in vim in the same environment. |
See @novel I see that you have TERMINFO env var set, so unibilium should use that. What happens if you unset that? |
|
Try something other than rxvt, or just use vim. rxvt is a waste of time. |
It looks like the problem is not in rxvt but in unibilium on FreeBSD. From unibi_from_term(3), it's checking various directories ($TERMINFO, $HOME/.terminfo, $TERMINFO_DIRS) for a filename matching $TERM. However, on FreeBSD I have on 'screen-256color' (or anything like that), I only have this |
You're probably running into mauke/unibilium#25. |
I was able to workaround it by going to Then things work fine when running it like I'm not sure why FreeBSD's |
I'm not sure if that's the same thing. FreeBSD uses original ncurses (at least the port version, didn't check the base), but uses a single db file ( |
This is what worked for me: == add in ~/screenrc -- remove line from ~/.bashrc |
Actual behaviour
I just switched from vim to nvim and the home/pos 1 and end key do not work anymore with my original configuration. They do work in vim.
Expected behaviour
What I would expect is that the curser would jump to the start of the line using home/pos 1 key and jump to the last character of the line with the end key.
Steps to reproduce
Open a vimrc with comments or a markdown file and position the curser somewhere in the middle of a line. Then press home/pos 1 and nothing happens. The same with the end key.
The text was updated successfully, but these errors were encountered: