ishiy1993 / julia-vim

Vim support for Julia. (without LaTeX-to-Unicode)

Home Page:http://julialang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

julia-vim

julia-vim logo

Julia support for Vim.

INSTALLATION INSTRUCTIONS

Complete documentation

The full documentation is available from Vim: after installation, you just need to type :help julia-vim.

The remainder of this README will only give an overview of some of the features:

Block-wise movements and block text-objects

This plug-in defines mappings to move around julia blocks (e.g. if/end, function/end etc.) and to manipulate them as a whole (analogously to the standard w, b etc. commands to move on words, and to the aw, iw commands which allow to manipulate them). These require the matchit plugin, which is usually distributed with ViM but must be explicitly enabled, e.g. adding this to your .vimrc file:

runtime macros/matchit.vim

The default mappings use ]], ][, [[, [], ]j, ]J, [j, and [J for the movements and aj, ij for the selections. These can be disabled collectively by setting g:julia_blocks to 0, or they can be remapped and/or disabled individually by defining a g:julia_blocks_mapping variable. See the documentation for details.

Note that this feature requires Vim version 7.4 or higher.

Changing syntax highlighting depending on the Julia version

The pluign supports syntax highlighting different versions of Julia. By default, the highlighting scheme assumes the latest stable release of Julia (currently, version 1.0; the plugin does not differentiate between 0.7 and 1.0), but the previous one and the latest version under development are also supported. You can set a global default in your .vimrc, e.g. if you follow Julia's master you can use:

let g:default_julia_version = "devel"

or if you are still using Julia 0.6 you can use:

let g:default_julia_version = "0.6"

You can also switch version for a particular buffer, by using the julia#set_syntax_version() function, e.g. by typing in Vim:

:call julia#set_syntax_version("0.6")

About

Vim support for Julia. (without LaTeX-to-Unicode)

http://julialang.org/

License:Other


Languages

Language:Vim Script 99.6%Language:Julia 0.4%