jlcrochet / vim-razor Goto Github PK
View Code? Open in Web Editor NEWVim syntax highlighting and indentation for Razor markup
Vim syntax highlighting and indentation for Razor markup
The C# indentation rules delivered with Vim break certain cases, so I am currently using cindent
instead.
Thanks for maintaining this project. It will prove very useful to me (and others) until one day when we collectively figure out how to get Omnisharp to process razor in a way that's not locked down to Microsoft products.
I included this plugin in my neovim config a few days ago using packer.nvim, which updates my plugins automatically and shows me the reflog for all new commits for all my plugins. But I had to pop in to see what changed here a couple of hours ago because there was no commit message describing the change. From the reflog, I gather that you don't normally like to bother, but I highly recommend taking up the practice, not only for others to see easily but also for your future self -- bisecting, reverting, merging etc. all become a lot clearer when the hashes have concise one-liners next to them!
Examples:
<script>
let foo = 5;
if (foo > 1) {
doSomething();
} else {
bleh;
}
</script>
<style>
body {
color: red;
}
</style>
NOTE: Maybe this only occurs when g:razor_indent_shiftwidth
is set.
Exhibit A:
@functions {
// foo
public bool IsAdministrator => HttpContext.Session.GetInt32("Administrator") == 1;
}
Exhibit B:
@functions {
@* foo *@
public bool IsAdministrator => HttpContext.Session.GetInt32("Administrator") == 1;
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.