Skip to content

SirSireesh/vim-dlang-phobos-highlighter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

vim.d - additional vim d syntax highlighting

This file contains additional syntax highlighting that used for D development in Vim. Compared to the standard syntax highlighting for D it adds highlighting of (user defined) functions and the containers and types in the standard library (phobos).

Optional features

Highlighting of class scope is disabled by default. To enable set

let g:d_class_scope_highlight = 1

Installation instructions

Follow one of the sets of directions below and reload vim afterwards.

Vundle

Install using vundle by adding

Plugin 'Sirsireesh/vim-dlang-phobos-highlighter'

to .vimrc and run :PluginInstall.

Git submodule + Pathogen

If you have pathogen installed, and you prefer to use git submodules, run

cd ~/.vim
git submodule add http://github.com/Sirsireesh/vim-dlang-phobos-highlighter.git bundle/syntax/

Manual installation

If you don't have either Vundle or Pathogen installed, copy the d.vim file to .vim/after/syntax.

git clone http://github.com/Sirsireesh/vim-dlang-phobos-highlighter.git /tmp/vim-dlang-phobos-highlighter
mkdir -p ~/.vim/after/syntax/
mv /tmp/vim-dlang-phobos-highlighter/after/syntax/d.vim ~/.vim/after/syntax/d.vim
rm -rf /tmp/vim-dlang-phobos-highlighter

Issues

Vim tend to a have issues with flagging braces as errors, see for example vim-jp/vim-cpp#16. A workaround is to set

let c_no_curly_error=1

Background information

Based heavily on vim-cpp-enhanced-highlight by octol, mostly copied from there

Sireesh Kodali

Last update: 12 April 2017

About

Highlight Phobos and a few extras for D in vim

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published