Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jlcrochet/vim-razor
Vim syntax highlighting and indentation for Razor markup
https://github.com/jlcrochet/vim-razor
blazor cshtml razor vim vim-filetype vim-indent vim-plugin vim-syntax
Last synced: 2 months ago
JSON representation
Vim syntax highlighting and indentation for Razor markup
- Host: GitHub
- URL: https://github.com/jlcrochet/vim-razor
- Owner: jlcrochet
- Created: 2020-06-02T20:30:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-05-28T03:41:03.000Z (8 months ago)
- Last Synced: 2024-05-28T13:11:13.022Z (8 months ago)
- Topics: blazor, cshtml, razor, vim, vim-filetype, vim-indent, vim-plugin, vim-syntax
- Language: Vim Script
- Homepage:
- Size: 312 KB
- Stars: 36
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Introduction
This plugin provides filetype support — including syntax highlighting and indentation — for [Razor](https://docs.microsoft.com/en-us/aspnet/core/mvc/views/razor) markup files. Out of the box, it detects `*.cshtml` and `*.razor` files.
Custom highlighting is defined for HTML and C# by this plugin in order to ensure that they are properly integrated; this highlighting will only affect Razor files, not regular HTML and C# files. If you'd like to use the C# highlighting for regular C# files as well, you can install my [vim-cs](https://github.com/jlcrochet/vim-cs) plugin.
## Installation
This is a standard Vim plugin which can be installed using your plugin manager of choice. If you do not already have a plugin manager, I recommend [vim-plug](https://github.com/junegunn/vim-plug).