GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - jonathandip/orca.vim: Syntax highlighting for Orca input files in vim

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

37 Commits
37 Commits

Folders and files

NameName
Last commit message
Last commit date
ftdetect
ftdetect
 
 
ftplugin
ftplugin
 
 
indent
indent
 
 
syntax
syntax
 
 
test
test
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 

Repository files navigation

orca.vim

Vim plugin for ORCA quantum chemistry input files. Supports ORCA 6.1.1 (backwards compatible with 5.0.2).


Features

Syntax highlighting

  • ! keyword line — methods, functionals, basis sets, convergence keywords
  • Model-specific solvent forms — CPCM(...), SMD(...), ALPB(...), DDCOSMO(...), CPCMX(...)
  • %block ... end — block headers, parameter names, values, strings, numbers
  • * xyzfile — geometry coordinate block
  • Comments (#) — highlighted in dim colour, suppressed from completion
  • Inline directives: %moinp, %maxcore, %moread

Autocompletion

Context-aware popup completions trigger automatically as you type:

Context Triggers on Completes
! keyword line any word character methods, functionals, basis sets
% % character or word after it block names
Inside %block ... end any word character block-specific parameters
* xyzfile 0 1 space after charge/mult .xyz files in buffer directory
%moinp space after directive auto-inserts "", completes .gbw files inside

Tab accepts the highlighted item and closes the popup. Shift-Tab navigates backwards.

When a block name is accepted, a skeleton is inserted automatically:

%scf
    |
end

Indentation

  • 4-space indent inside %block ... end sections
  • No indent after inline directives (%moinp, %maxcore, %moread)
  • end dedents automatically

Installation

Copy the files into your Vim runtime directory:

syntax/orca.vim   → ~/.vim/syntax/orca.vim
ftplugin/orca.vim → ~/.vim/ftplugin/orca.vim
ftdetect/orca.vim → ~/.vim/ftdetect/orca.vim
indent/orca.vim   → ~/.vim/indent/orca.vim

One-line execution to do this easily in bash: for d in syntax ftplugin ftdetect indent; do mkdir -p "$HOME/.vim/$d" && cp "$d/orca.vim" "$HOME/.vim/$d/orca.vim"; done

Filetype detection

The plugin detects .inp and .orca files automatically. If needed, add to your vimrc:

au BufRead,BufNewFile *.inp  set filetype=orca
au BufRead,BufNewFile *.orca set filetype=orca

For Neovim:

vim.api.nvim_create_autocmd({"BufRead", "BufNewFile"}, {
  pattern = {"*.inp", "*.orca"},
  command = "set filetype=orca"
})

Customisation

Highlight groups follow your colorscheme automatically. To override specific colours, add to your vimrc:

autocmd FileType orca highlight orcaComment ctermfg=8 guifg=#6c7086

Key highlight groups: orcaComment, orcaBlock, orcaBlockParam, orcaKeyword, orcaBasis.

Solvent keyword availability is embedded in syntax/orca.vim, derived from the ORCA 6.1 manual Tables 2.56 and 3.24. Completion reads those syntax rules so the plugin works without external data files.


Similar projects

  • mrymtsk/orca-vim by Toshiki Murayama

License

Apache License 2.0 — see LICENSE.

About

Syntax highlighting for Orca input files in vim

orcaforum.kofo.mpg.de/viewtopic.php?f=8&t=8590

Resources

Readme
License
Activity

Stars

4 stars

Watchers

0 watching

Forks

2 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.