AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.


#Power
#Power
 View Only
  • 1.  vim with colored syntax highlighting

    Posted Tue March 09, 2010 07:34 AM

    Originally posted by: SystemAdmin


    Hi,

    When I edit a "*.sh" file vim doesn't show it with colored syntax highlighting. Below are some configuration information.

    Any hint?

    <<snip begin>>

    /openp1/opencobd->echo $TERM
    aixterm
    /openp1/opencobd->uname -a
    AIX cobrosr 3 5 00C7A4B24C00
    /openp1/opencobd->cat .vimrc

    syntax on
    set ruler

    if has("terminfo")
    let &t_Co=8
    let &t_Sf="p1%dm"
    let &t_Sb="p1%dm"
    else
    let &t_Co=8
    let &t_Sf="dm"
    let &t_Sb="dm"
    endif

    <<snip end>>

    Thanks in advance,
    Jose Luis
    #AIX-Forum


  • 2.  Re: vim with colored syntax highlighting

    Posted Wed March 10, 2010 08:54 PM

    Originally posted by: SystemAdmin


    export TERM=xterm
    #AIX-Forum


  • 3.  Re: vim with colored syntax highlighting

    Posted Thu March 11, 2010 03:59 AM

    Originally posted by: SystemAdmin


    Thanks for you help.

    I finally got vim's colored syntax. These are the steps that I followed:

    1) On my telnet client (Secure CRT) select "xterm" as Terminal Emulation and the checkbox "ANSI Color"

    2) Add "export TERM=aixterm" to my ".profile"

    3) Copy "$VIMRUNTIME/vimrc_example.vim" to "$HOME/.vimrc"
    Regards,
    Jose Luis
    #AIX-Forum


  • 4.  Re: vim with colored syntax highlighting

    Posted Thu March 11, 2010 07:11 PM

    Originally posted by: dukessd


    Thank-you Jose,

    We appreciate a resolution to all threads and you have posted a solution even though we could not help you.

    This will be helpful to anyone else in the world looking for an answer to the same question.
    #AIX-Forum