• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Custom IC Design
  3. ADEXL switch default ocean script editor

Stats

  • Locked Locked
  • Replies 7
  • Subscribers 125
  • Views 15417
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ADEXL switch default ocean script editor

Tobben24
Tobben24 over 12 years ago

Hi,

When I want to edit an oscean script in ADEXL Setup tab(E button), the script is opened in emacs. How can I change this to another program, ie. vim?

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    There is a SKILL variable called editor which is seeded from the UNIX environment variable $EDITOR which sets the editor used.

    Check in the CIW what the value of editor is. Then you can do

    editor="nedit"

    for example. This could go in your .cdsinit.

    Something must be setting either $EDITOR or editor, because emacs is not the default... (vi is - because it is guaranteed to be there, whether you like it or not - I don't want to start an editor war!)

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tobben24
    Tobben24 over 12 years ago
    Perfect! Thanks for the quick reply:)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tobben24
    Tobben24 over 12 years ago
    So tried to edit the .cdsinit file, but I found out that this one is shared by many users so I cannot edit this one. Is the some local file I can edit/create which also is read by candence at startup where is can set this editor variable?
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    Is $EDITOR set up in your UNIX environment - i.e. is that what is causing it to be set? If so, maybe you can set that environment variable in your personal .cshrc/.login or .bashrc - whichever shell you're using.

    Most companies have something set up in their central .cdsinit file to look for local customization files too, typically in your working directory or home directory. The default behaviour is that virtuoso looks first in the installation in <ICinstDir>/tools/dfII/local, then in working dir, then in home dir. The first that is found is loaded. Alternatively it can use the Cadence Search File mechanism (sometimes known as setup.loc - search in the documentation for more details). However, in all cases, it loads just the first found - and you have to add code into the .cdsinit to look for local files if you want additional places to look.

    So your central file could have:

    when(isFile("~/.cdsinit")
      loadi("~/.cdsinit")
    )

    or similar to look for a personal .cdsinit file.

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tobben24
    Tobben24 over 12 years ago

    Ok. Added it in .cshrc, and now the editor variable is changed. However, my preferred edit is vim and this editor is runned "inside" a terminal. ADEXL(or vim) gives me a warning when trying to edit a file:

    *WARNING* editFile: Vim: Warning: Output is not to a terminal

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 12 years ago

    There is some default handling of EDITOR being "vi" - it transforms that automatically to do "xterm -e vi". That doesn't happen if EDITOR is set to "vim" though. So you either need to set EDITOR to "xterm -e vim" or "gvim" (if you have that available) - that is vim in a standalone window.

    Virtuoso doesn't really have any way of knowing whether your editor works in a standalone window (such as emacs, nedit, gvim, gedit), or runs in a terminal (vi, vim, ex, nano etc). So you have to tell it - we just have a default mapping built in to handle EDITOR/editor being "vi".

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tobben24
    Tobben24 over 12 years ago
    By setting editor to "vi" worked, but I lost some of important features, mouse functionallity amongs others. But entering "xterm -e vim" it worked. Thank you!:)
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information