OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => Sharp ROMs => Topic started by: climber on January 17, 2006, 03:45:27 am
-
I´ve flashed my SL-C3100 with the actuall Cacko 1.23 ROM. Up to now everythink works good. For editing data I installed the following version of vim "vim_6.1_arm.ipk". The installation wasn´t a problem. Now, i want to enable the syntax hightlighting and for that i heard that i have to copy the .vimrc to my home directory. I cant´t find a .vimrc anywhere on my zaurus. Another guy sayd that you have to run vimtutor and one of this process involves coppying a sample .vimrc file to your home directory. Where and how should i run vimtutor. I execute this on the shell, but with no effect.
Could anybody help me to solve this problem!?
Thanks,
climber
-
I'm curently usinig OZ (http://www.openzaurus.org), not Cacko, but I downloaded the latest vim from the ZUG's Cacko feed (http://www.zaurususergroup.org/feed/) (6.3, not sure where you got yours). There's a sample vimrc in the file /usr/share/vim/vim63/vimrc_example.vim, so I'd imagine there should be the same file in the verision directory of your package. Copy this file to ~/.vimrc & you should be good to go (other than what's below).
I noticed that this file (in 6.3) has a special check to turn syntax highlighting on only if you have a color terminal, but I'm not sure if the terminal in cancko supports that. Give it a try (there's a lot more than just syntax'ing in there), but if it doesn't work (or if you don't have a vimrc sample in your share directory), you can just create a ~/.virmc file yourself and enter whatever settings you want. Here's a few that I use to get you started:
syntax on
set hlsearch
set autoindent
set ruler
set ignorecase
set smartcase
set backspace=2
set laststatus=2
To find out what each setting does, just enter the command ':help command' (for example, ':help ruler') to get a description of it.
HAPPY VIM'ING!
-
Uninstall my vim version and installing the 6.3 version wasn´t no problem. Then I copied the vimrc_example.vim from this folder /usr/share/vim/vim63/ to /home/zaurus/ and renamed it to .vimrc.
Opening a html-file with vim no syntaxhighlighting was viewable. I´m not sure but needn´t i to do a symbol link to the vim63 folder or something other?
Could someone give me a link to download a working .vimrc [with syntaxhighlighting on] to exclude this as a error source.
Thanks,
Tom
-
As someone else just suggested in this thread (https://www.oesf.org/forums/index.php?showtopic=17200&hl=), try setting your TERM variable before starting vim (export TERM=linux). Does that work? If not, then remove your .vimrc & replace it with the simple example I gave you previously & try it again. Does that work?
-
"Export TERM=linux" doesn`t solve the problem. I can't believe that no SL-C3xx user with the new Cacko-ROM has vim without syntaxhighlighting. I´m sure that anyone has managed syntaxhightlighting with his SL-C3xx and Cacko. Please write me a few lines if someone ohter has the same problems and maybe fixed it successfully.
Maybe the newest vim version 6.3 makes problem with syntaxhighlighting?
Thanks,
climber
-
in .profile
export TERM=linux
in .vimrc
set syntax=on
for syntax highlighting, you need to have the correct file extension like .cpp or .h
also i am using kconsole which is the default console come from cacko
-
Sure that´s the requirement that vim hightlights the syntax. For testing i type "vim test.html" and enter some html code. No syntaxhighlighting...
-
Try this specifically on the command line:
export TERM=linux
vim file.html
and then from within vim:
:set syntax=on
Does this work? If so, there's a problem with your .profile and/or .vimrc files. If not, then ... ?
-
I'm curently usinig OZ (http://www.openzaurus.org), not Cacko, but I downloaded the latest vim from the ZUG's Cacko feed (http://www.zaurususergroup.org/feed/) (6.3, not sure where you got yours). There's a sample vimrc in the file /usr/share/vim/vim63/vimrc_example.vim, so I'd imagine there should be the same file in the verision directory of your package. Copy this file to ~/.vimrc & you should be good to go (other than what's below).
I noticed that this file (in 6.3) has a special check to turn syntax highlighting on only if you have a color terminal, but I'm not sure if the terminal in cancko supports that. Give it a try (there's a lot more than just syntax'ing in there), but if it doesn't work (or if you don't have a vimrc sample in your share directory), you can just create a ~/.virmc file yourself and enter whatever settings you want. Here's a few that I use to get you started:
syntax on
set hlsearch
set autoindent
set ruler
set ignorecase
set smartcase
set backspace=2
set laststatus=2
To find out what each setting does, just enter the command ':help command' (for example, ':help ruler') to get a description of it.
HAPPY VIM'ING!
[div align=\"right\"][a href=\"index.php?act=findpost&pid=111270\"][{POST_SNAPBACK}][/a][/div]
Hi,
i'm looking for vim 7.0 for SharpRom/Cacko 1.23, could not find it anywhere. Consolemode only would be fine.
Does anyone know whether it is available?
If not vailable as binary, is it difficult to compile?
George
-
"Export TERM=linux" doesn`t solve the problem. I can't believe that no SL-C3xx user with the new Cacko-ROM has vim without syntaxhighlighting. I´m sure that anyone has managed syntaxhightlighting with his SL-C3xx and Cacko. Please write me a few lines if someone ohter has the same problems and maybe fixed it successfully.
Maybe the newest vim version 6.3 makes problem with syntaxhighlighting?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=112280\"][{POST_SNAPBACK}][/a][/div]
for default cacko 1.23 have this .profile:
[...]
export COLORTERM=0
#export TERM=linux
[...]
if [ "'env | grep SSH_TTY'" == " ]; then
export TERM=vt100
fi
[...]
ok now you can try to change like this:
[...]
export COLORTERM=0
#export TERM=linux
[...]
if [ "'env | grep SSH_TTY'" == " ]; then
export TERM=linux
fi
[...]
or like this:
export COLORTERM=0
export TERM=linux
[...]
#if [ "'env | grep SSH_TTY'" == " ]; then
# export TERM=vt100
#fi
[...]
-
HI,
Try this. This works on my c860 on Cacko. You might need to change the term line to match your set-up.