All Projects → ruby-formatter → rufo-vim

ruby-formatter / rufo-vim

Licence: MIT license
Ruby format for vim via rufo

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to rufo-vim

util
封装了一些Java常用的功能
Stars: ✭ 19 (-63.46%)
Mutual labels:  formatter
vscode-nginx-formatter
A simple Formatter, which formats NGINX Configuration Files in VSCode
Stars: ✭ 16 (-69.23%)
Mutual labels:  formatter
unicode-formatter
Convert portions of text to fancy text using unicode fonts for use on Twitter and other sites that don't support rich text
Stars: ✭ 31 (-40.38%)
Mutual labels:  formatter
format-date
📆 A small library (around 400 B when gziped & minified) to format JavaScript `Date` object using same tokens as moment.
Stars: ✭ 25 (-51.92%)
Mutual labels:  formatter
rspec-github
Formatter for RSpec to show errors in GitHub action annotations
Stars: ✭ 33 (-36.54%)
Mutual labels:  formatter
street-address
Street address parser and formatter
Stars: ✭ 86 (+65.38%)
Mutual labels:  formatter
SonataFormatterBundle
Symfony SonataFormatterBundle
Stars: ✭ 78 (+50%)
Mutual labels:  formatter
ufmt
Safe, atomic formatting with black and µsort
Stars: ✭ 46 (-11.54%)
Mutual labels:  formatter
vue-translated
Internationalization (i18n) and localization (l10n) library for Vue.js v2.
Stars: ✭ 19 (-63.46%)
Mutual labels:  formatter
mirtop
command lines tool to annotate miRNAs with a standard mirna/isomir naming
Stars: ✭ 16 (-69.23%)
Mutual labels:  formatter
dockerfile-language-service
Dockerfile language service for providing an API to create feature-rich Dockerfile editors in JavaScript.
Stars: ✭ 15 (-71.15%)
Mutual labels:  formatter
bundle outdated formatter
Formatter for `bundle outdated` command
Stars: ✭ 16 (-69.23%)
Mutual labels:  formatter
JsonFormatter
Easy, Fast and Lightweight Json Formatter. (Serializer and Deserializer)
Stars: ✭ 26 (-50%)
Mutual labels:  formatter
Bois
Salar.Bois is a compact, fast and powerful binary serializer for .NET Framework. With Bois you can serialize your existing objects with almost no change.
Stars: ✭ 53 (+1.92%)
Mutual labels:  formatter
ormolu.el
A formatter for Haskell source code
Stars: ✭ 31 (-40.38%)
Mutual labels:  formatter
eslint-formatter-git-log
ESLint Formatter featuring Git Author, Date, and Hash
Stars: ✭ 36 (-30.77%)
Mutual labels:  formatter
string theory
Flexible modern C++ string library with type-safe formatting
Stars: ✭ 32 (-38.46%)
Mutual labels:  formatter
benchee html
Draw pretty micro benchmarking charts in HTML and allow to export them as png for benchee
Stars: ✭ 50 (-3.85%)
Mutual labels:  formatter
csharpier
CSharpier is an opinionated code formatter for c#.
Stars: ✭ 337 (+548.08%)
Mutual labels:  formatter
html-eslint
ESLint plugin for linting HTML
Stars: ✭ 72 (+38.46%)
Mutual labels:  formatter

rufo-vim

Ruby format for vim via rufo.

Installation

First of all, install rufo via

    $ gem install rufo

Verify it works via

    $ rufo -v

For vim, if you don't have a preferred installation method, I recommend installing pathogen.vim, and then simply copy and paste:

cd ~/.vim/bundle
git clone git://github.com/ruby-formatter/rufo-vim.git

Enable in .vimrc

Auto formatting is disabled by default, so you have to enable it in your .vimrc/.gvimrc

" Enable rufo (RUby FOrmat)
let g:rufo_auto_formatting = 1

Next time when you save the file code will be formatted

Partial formatting

For formatting some part of the code select lines with Shift+V and call :Rufo command

Options

g:rufo_auto_formatting - enable/disable auto formatting. Default value: 0 (disabled)

g:rufo_errors_buffer_position - errors buffer position. Possible values: 'top', 'bottom', 'left', 'right'. Default: 'bottom'

g:rufo_silence_errors - Errors will not be shown if set to 1. Possible values: 0 or 1. Default: 0

Commands

:Rufo - run formatting. In Normal mode - format whole file, in Visual mode - format selected part

:RufoOn - enable auto formatting

:RufoOff - disable auto formatting

:RufoToggle - enable/disable auto formatting

Contributors

Thank you 💚

Help is very welcome!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].