OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Angstrom & OpenZaurus => Topic started by: systemparadox on November 04, 2004, 03:22:49 pm
-
Firstly, vi doesn't seem to recognise backspace- it just produces "^?" (in insert mode).
Secondly, whenever I run vi, the status bar at the bottom is wider than the screen and causes it to wrap. Since vi takes up the whole screen, this wrapping adds another line, shifting everything up one line. Since moving around updates the status bar, this shifts everything up again and again until I end up with a real mess. Turning off line wrapping fixes this, but with the small screen I need line wrapping when not using vi. Is there either:
a) a way of telling vi not to bother with the rest of the status bar (preffered method)?
or
a way of having line wrap turn off automatically when vi starts and on again when it exits?
I am running OZ 3.5.1 Opie on SL-5500 (if that makes any difference).
Thanks
Simon
-
For the backspace problem, in a console, try using the command:
stty erase ^?
... and then run vi/vim.
If that solves the problem, you can add the following line to one of your rc files (.profile, .bash_profile, .bashrc, etc):
stty erase "^?"
... note the quotes this time, they are required.
As for the status bar problem, I don't know... I use a (Japanese) build of vim under Cacko Qt, and don't have a problem. To turn off line wrapping, you can try the following command in vi:
:set nowrap
... I don't know if it will affect the status bar though.
You could also try turning the status bar off (so that it only shows up when needed), using:
:set laststatus = 0
If you want, you can add either of the above two commands to your ~/.vimrc file.
- ashikase
anpachi, gifu, japan
-
To solve your backspace problem add to your .vimrc file
set t_kb=^?
to put the ^? control code in vi press control-v then control-backspace.
-
Thanks for replying.
Is there a vi equivalent to .vimrc?
The stty erase thing didn't work (with or without the quotes), but then backspace problem is specific to vi, it works fine in the rest of the console.
The SL-5500 does not have a control key! For control+c/v/x, fn+c/v/x often works, but it does depend on the program. Fn+backspace is the same as del.
:set laststatus=0
:set t_kb=^?
:set nowrap
did not fix anything either.
Thanks
Simon
-
I forgot you prob. did not have vim but most likely elvis (type "which vi" at terminal to check. If you do have elvis there is an equivelent file but I don't know the syntax or location. Help on elvis can be found at Elvis Help (http://elvis.the-little-red-haired-girl.org/).
Sorry.
-
'which vi' gives '/bin/vi'
Which suggests to me that it's the original vi, not a clone.
I have no idea where to go from here.
-
it's busybox vi rather - small but working
-
oh yeah thanks- i'd forgotten about that.
However i still don't know how to fix the backspace or wrapping problems.
-
oh yeah thanks- i'd forgotten about that.
However i still don't know how to fix the backspace or wrapping problems.
systemparadox,
You might want to install the ipk for vim. I believe I found mine in the 70M apps tar file at
http://www.ecs.soton.ac.uk/~cil103/pub/feed/ (http://www.ecs.soton.ac.uk/~cil103/pub/feed/)
Install vim and its doccumentation and then run vimtutor. One of the steps in vimtutor involves
coppying a sample .vimrc file to your home directory.
It worked very well in GPE, but I never figured out how to make my font smaller so I switched to
Opie. There vim also works, but I could not make the terminal app handle syntax highlighting and
still cannot change the font without problems. But if you are using black and white vi, vim should be a step up. With it, I don't have any of the problems you described and have enough functionality that I have stopped trying to fix things for the moment.
-
The same problem for the the only user "root" in RED HAT AS 3.0
Solution
you must create $HOME/.exrc file like this:
#cat $HOME/.exrc
set t_kb=^?
(where ^? obtained by pressing the backspace key)
# chmod 400 $HOME/.exrc
This is VERY VERY important
---------------------------------------------------------------------------------
We had other problems with backspace using exceed xterm with RED HAT 3.0.
These were solved in this way:
Xconfig -> Keyboard Input -> Italian kbd -> >Edit
click BackSpace key
Unshifted: BackSpace
Shifted: NoSymbol <---------------------------------------------
ModeSwitch: NoSymbol
ShiftedModeSwitch: NoSymbol
save
restart Xmanager.
Best regards
Marina
-
i tried it, but it didn't work.
(note: i used vi to make the .exrc file, as "cat $HOME/.exrc" just outputs the contents of .exrc)
out of interest, why is "chmod 400 $HOME/.exrc" so important?