Giter Site home page Giter Site logo

mesastro-vim's Introduction

Logo

Set of files to to enable syntax highlight for MESA inlist and *.list files. It highlights all the possible keywords (only if followed by an apropiate expression if it is either a boolean or a number) as well as comments. The syntax highlight of inlist files is applied to any file whose name starts with inlist except inlist.vim.

For the syntax highlight to work properly. the .vimrc file should contain the lines:

syntax on
filetype indent plugin on

The *.vim files found in ftplugin/ directory modify the configuration of tabs to expandtab and tablength equal to 3 spaces and set autoindent on.

The *.vim files found in syntax/ directory and the ones generated with the python codes have each section commented, therefore can be easily modified to delete syntax highlight for numbers or strings.

Release 9575

The *.vim files found in syntax/ directory are the ones corresponding to MESA release 9575. Thus, using MESAastro-vim for this release only requires moving the folders ftdetect/, ftplugin/ and syntax/ inside $HOME/.vim/.

Other MESA releases

The repository also contains the files vim-inlist.py and vim-list.py written in Python that write the inlist.vim and list.vim files when executed by retreving the keywords from $MESA_DIR/star/defaults (note that it is required to have $MESA_DIR properly defined). The execution of the python codes will create two files inlist.vim and list.vim which should replace the files currently present in the syntax/ folder. Afterwards, the three folders should be moved or copied inside $HOME/.vim/ as explained for MESA-r9575. The python codes rely on the *.defaults files and the history_columns.list and profile_columns.list, therefore, this repository is campatible with any MESA release as long as these filenames remain the same.

mesastro-vim's People

Contributors

oriolabril avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

jvriesem

mesastro-vim's Issues

Missing keywords

Missing keywords: inlist files

  • conv_mixing_type
  • many elements

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.