Coder Social home page Coder Social logo

chapel.vim's Introduction

Chapel Mode for Vim

Chapel support for Vim has been designed for use with Vim versions 5.08 or newer.

Note: This repository was extracted from chapel/highlight/vim using filter-repo to streamline the plugin's installation.

git filter-repo --subdirectory-filter highlight/vim

Issues and pull request should be opened on the original repository.

File Descriptions:

  • ftdetect/chpl.vim
    • Allows vim to auto-detect the syntax highlighting scheme for .chpl files.
  • ftplugin/chpl.vim
    • Useful editor settings supporting chpl, chpldoc
  • syntax/chpl.vim
    • Syntax highlighting scheme for Chapel
  • indent/chpl.vim
    • Indenting scheme for Chapel
  • sample-vimrc
    • Sample .vimrc configuration file

Installation Instructions:

vim-plug Installation:

For users of the vim-plug plugin manager, the vim Chapel support can be loaded as an unmanaged plugin. To do this, add the following line to the .vimrc, between the call plug#begin() and call plug#end() lines:

Plug '~/path/to/chapel/highlight/vim'

Where ~/path/to/chapel is the path to the Chapel repository, starting from the home directory. Chapel support should work once these changes are made without any calls to :PlugInstall, which is required for managed plugins.

Note that vim-plug uses the ~ character to identify that a plugin is a local file, so the Chapel repository, or at least the highlight/vim/ directory, must be somewhere under the home directory.

Manual Installation:

  • Create a directory in the root of your home directory called ".vim"

    $ mkdir $HOME/.vim

  • Copy the contents of this directory to your ".vim" directory

    $ cp -r * $HOME/.vim

  • Modify your .vimrc configuration file to enable automatic filetype detection, syntax highlighting, and indenting (this step is optional but recommended).

    $ vim $HOME/.vimrc

  • OR: Use the sample .vimrc file provided (be careful you don't overwrite any existing .vimrc file!):

    $ cp -i sample-vimrc .vimrc

Enabling Chapel Support in Vim:

If you have chosen to use the sample-vimrc file you can safely ignore this section. Vim commands are denoted ": command". You can give these commands manually whenever you start a vim session (with the ":") or they can also be given automatically every time vim is started by putting them in your .vimrc file (without the ":").

" Enable automatic filetype detection
:filetype on
" Enable syntax highlighting scheme:
:syntax on
" Enable indenting scheme:
:filetype indent on

chapel.vim's People

Contributors

aconsroe-hpe avatar astatide avatar benharsh avatar bradcray avatar coodie avatar dlongnecke-cray avatar dtjong avatar e-kayrakli avatar lydia-duncan avatar mppf avatar rchinmay avatar rj-jesus avatar souris-dev avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

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.