• 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 SKILL
  3. Vim settings for SKILL

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 15695
  • 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

Vim settings for SKILL

RK56
RK56 over 7 years ago

Hi,

This is for those who love vim than any other editors. I did a little bit of search and have complied the following settings for skill in vim. 

Any suggestions are welcome.

1. Syntax highlighting (comes as default in VIM 7.4)

2. Dictionary setup for all SKILL keywords and procedures. (requires AutoCompletePop plugin)

3. Documentation browser (Displays the skill finder help inside vim)

TBD:

1. Tagbar integration (Configuring the tagbar plugin to display the procedure ans variables used)

2. Display the documentation help as a popup without stealing the focus.

I have the following in my ~/.vimrc

function SkillHelpLookup()
    let l:Command = expand("<cword>")
    :vert botright new
    setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap
    execute "read !sed -n '/^(\"" . l:Command . "/,/^(/p' ~/skHelp.txt | sed '$d' "
    :wincmd w
    1
endfunction

autocmd FileType skill map <F8> :call SkillHelpLookup()<CR>
autocmd FileType skill set dictionary+=~/.vim/skill_dict.txt

"------x-x-x-------

-Ramakrishnan

  • Cancel
Parents
  • rod1
    rod1 over 3 years ago

    How did you get automatic syntax highlighting with VIM 7.4?
    I have 8.2 and when I try opening an .ocn file, I don't get any highlighting...

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to rod1

    If you create ~/.vim/filetype.vim and have these contents:

    " my filetype file
    if exists("did_load_filetypes")
      finish
    endif
    augroup filetypedetect
      au! BufRead,BufNewFile *.ocn  setfiletype skill
      au! BufRead,BufNewFile *.ils  setfiletype skill
      au! BufRead,BufNewFile *.sv  setfiletype verilog
    augroup END

    then it should work.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 3 years ago in reply to rod1

    If you create ~/.vim/filetype.vim and have these contents:

    " my filetype file
    if exists("did_load_filetypes")
      finish
    endif
    augroup filetypedetect
      au! BufRead,BufNewFile *.ocn  setfiletype skill
      au! BufRead,BufNewFile *.ils  setfiletype skill
      au! BufRead,BufNewFile *.sv  setfiletype verilog
    augroup END

    then it should work.

    Andrew

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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