Re: VIM 7.3 Problem with F1-F10 in terminal ubuntu 10.10
> When i use vim in the console, the f1-10 is somehow broke:
> F1 inserts P
Your $TERM setting does not match the console. By console, I thought
you meant what I get when I type ctrl-alt-f1, but I've got doubts
because in my console the escape sequence for F1 is <esc>[[A, but your
F1 is giving the old vt100 <esc>OP; perhaps you mean konsole, not
console? Or some other terminal emulator? (Ubuntu's usual terminal
emulator is gnome-terminal, but for me F1 starts gnome-terminal's
help, and vim doesn't see it.)
Anyway, in the console, the one you get when not running X (the GUI)
TERM should be "linux", and in konsole and the like TERM should be
"xterm" or similar. Also, your .vimrc could be screwing things up by
setting vim's idea of the terminal, the "term" option. If in konsole
I start vim then
I get what you get. I'm kubuntu 10.4. In my set up none of my shell
start up files (.bashrc, .profile, /etc/profile, /etc/bash.bashrc)
sets $TERM nor does my .vimrc set term, and it get sets correctly; I
suggest you look for TERM or term being set somewhere. If not, please
tell us what $TERM is before you run vim, and what vim's term option
is set to, and which terminal emulator you are using.
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php