OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Help getting started with VIM on GPE, basic keys on SL5500, colored syntax
panyo
post Oct 6 2004, 03:42 PM
Post #1





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



I have installed VIM 6.2, ncurses, and ncurses-terminfo from
http://admin.di.fc.ul.pt/~bsantos/feed/

I am using the x-terminal-emulator that came with the OZ 3.5.1 GPE Rom, which has
color for 'ls' and so on.

But I need a little help before I can continue on my own.

To have the basic functionality I want, I need syntax highlighting in color.
(control of fonts in the xterm would be good too, but thats another topic)

I tried to follow the instructions in the syntax help file ( :help syntax in VIM)
but I could not generated the escape character that they described as
'CTRL-V <ESC>'
I know <ESC> is the 'cancel' button, but I am not sure I got CTRL-V right.
Also, I could not make the '[' bracket character. The keyboard mapping file that
is mentioned in some posts is now a dead link. While I am asking about keys,
I also do not have 'arrow' keys while I am editing, instead I get
A
B
C
(depending on which direction I try to arrow)


Since I could not make the characters required for the .vimrc file, I tried running the color test
in item 16 of that helpfile. That gave me an error.

The color test worked on my powerbook.
I also tried copying over my .vimrc file from my powerbook, but it did not change anything.
I tried editing the same test file on both machines, and everything worked right on the powerbook,
but syntax did not even turn on automaticaly on the Zaurus, and when I used :syntax on
I only got black and white highlighting.

I would greatly appreciate any help getting me started with this. From the time I bought this machine, my goal has been text to speech, dvorak input, and a powerful text editor (for LaTeX (dissertation) and HTML). I feel like after months of just what the OZ site warns of, I am almost at the point where I can start getting work done on this machine.
Go to the top of the page
 
+Quote Post
jamesm
post Oct 7 2004, 01:16 PM
Post #2





Group: Members
Posts: 102
Joined: 7-September 04
From: UK
Member No.: 4,489



I have a fairly significant interest in getting vim up and running on my poodle, however I'm running 3.5.1 opie atm so I'll try reflashing to gpe image (which I was going to do anyway) and having a go. (It might finally start wittling that todo list down).

As for the [ characters, with opie I have the luxury of the pickboard menu, so not a problem there, I can't vouch for the same functionality in gpe not having tried it yet.
Go to the top of the page
 
+Quote Post
panyo
post Oct 7 2004, 04:51 PM
Post #3





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



I can use the virtual input methods, but part of what I am interested in is using the builtin keyboard, which I have modified by gluing textured pieces to the home keys and which I can use fairly well that way.

The key combinations that work with Opie to generate special characters do not work in the console or the text editor.

Fn-shift-comma, for example, just produces ) , not ]. I am not seeing yet where this is discussed, though
it must be in some FAQ somewhere.
Go to the top of the page
 
+Quote Post
lardman
post Oct 8 2004, 02:33 AM
Post #4





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



This is a good point.

IMO it would be worth mapping one of the (unsused?) Japanese only keys to Ctrl (and the other to something else?) as I've also run across this problem (not with VIM, but still in the console).

I'll bring it up on IRC when I make it to uni later on.


Si
Go to the top of the page
 
+Quote Post
panyo
post Oct 8 2004, 11:19 AM
Post #5





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



Thanks Si. Too bad there are no Japanese keys on the 5500 so may have to sacrifice one of the buttons. I guess this means GPE or X cannot map three key combinations?
Go to the top of the page
 
+Quote Post
lardman
post Oct 9 2004, 04:57 AM
Post #6





Group: Members
Posts: 4,515
Joined: 25-October 03
From: Bath, UK
Member No.: 464



Well on the 5500 and possibly the C machines too (I don't have mine in front of me) c, x and v don't have fn actions so they could just be mapped directly to the ctl- keycodes (I presume). Not sure how it's done though (but I have a feeling it's easier with GPE than with Opie).

No-one replied to my question about the Japanese keys.


Si

This post has been edited by lardman: Oct 9 2004, 04:58 AM
Go to the top of the page
 
+Quote Post
panyo
post Oct 13 2004, 02:59 PM
Post #7





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



QUOTE(lardman @ Oct 9 2004, 06:57 AM)
Well on the 5500 and possibly the C machines too (I don't have mine in front of me) c, x and v don't have fn actions so they could just be mapped directly to the ctl- keycodes (I presume). Not sure how it's done though (but I have a feeling it's easier with GPE than with Opie).

No-one replied to my question about the Japanese keys.


Si

So far I have figured out that the keysym for the Fn key may be Mode_switch, 116.
I don't know yet how key combinations can be mapped. In xmodmap a line like
keysym f = u U means the second item is for the shift combination.
Adding 7 more letters (ctl, alt, mod1 mod2 mod3 mod4 Mode_switch?) I still had '~' for Fn c.

Regarding your Japanese key question, if I had an extra key, I cannot immagine a better use
for it on a Linux device than for the Ctrl key. How on earth are people using this without Ctrl?
Emacs is my home environment and I would very much like to be able to ssh from my Z to my servers and work properly. This experience has forced me to get to know and appreciate vim, but there are some specific things for which there is no replacement for emacs on my remote machines (a front end to R using ESS).

Do people no longer use a shell?? Let alone emacs. Must we wait for all jobs to end by themselves, or switch to another terminal to kill them?

I hope I can get this figured out on the 5500, but I appreciate your offer to the others since I would hope it would promote the use and testing of terminal based tools making them better ported for all of us.
Go to the top of the page
 
+Quote Post
panyo
post Oct 14 2004, 01:40 PM
Post #8





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



Ok, my main problem is solved, but one still remains.

To get syntax highlighting, make the 'arrows' work, and make the delete key work the following
needs to be in my .vimrc file:
CODE
set bs=2

if &term=="vt100" || &term=="rxvt" || &term=="xterm"
       set t_Co=8
       set t_Sf=^[[3%dm
       set t_Sb=^[[4%dm
       set t_mr=^[[00;33;44m
endif

syn on


The problems that remain are generating all necessary keys from the builtin keyboard
on an SL5500 under GPE.
Specificaly Ctrl combinations, '[', and ']'.
Go to the top of the page
 
+Quote Post
panyo
post Oct 21 2004, 06:09 PM
Post #9





Group: Members
Posts: 88
Joined: 3-February 04
Member No.: 1,688



Ok, I have solved this problem.
First getting your keys to work:

The problem was that [ ] { } do not exist. You can get those keys by mapping
three unmapped keys, and one that is arguably not very useful.
put these lines in a file :
CODE
keysym F5 = bracketleft
keysym F6 = bracketright
keysym F7 = braceleft
keycode 89 = braceright

that replacs Fn-x, Fn-c, Fn-v, and Fn-<delete> with [ ] { } respectively.
Also, <Ctrl> is on the callander key.
Run the file with the keycode and keysyms through xmodmap:
CODE
xmodmap <filename>

and re-launch your terminal program and you will have your keys.
This is part of a larger file that I load in my .profile file when I log in to
convert my keyboard to dvorak.

Second, setting up VIM:

The best way to get vim going is to run
CODE
vimtutor

after installing all the vim files.
In particular, do the step that involves coppying the example vimrc file to your home directory.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd December 2014 - 12:38 PM