All Projects → guywaldman → vim-prismo

guywaldman / vim-prismo

Licence: MIT License
A Vim plugin to decorate your commented titles.

Programming Languages

Vim Script
2826 projects

Projects that are alternatives of or similar to vim-prismo

pretty-remarkable
Plugin for prettifying markdown with https://github.com/jonschlinkert/remarkable using custom renderer rules.
Stars: ✭ 22 (+4.76%)
Mutual labels:  beautify, prettify
Atom Beautify
📣 Help Wanted - Looking for Maintainer: https://github.com/Glavin001/atom-beautify/issues/2572 | 💄 Universal beautification package for Atom editor (⚠️ Currently migrating to https://github.com/Unibeautify/ and have very limited bandwidth for Atom-Beautify Issues. Thank you for your patience and understanding ❤️ )
Stars: ✭ 1,501 (+7047.62%)
Mutual labels:  beautify, prettify
Vim Autoformat
Provide easy code formatting in Vim by integrating existing code formatters.
Stars: ✭ 2,000 (+9423.81%)
Mutual labels:  beautify, prettify
wp-googlecodeprettify
一个基于 Google Code Prettify 实现的WordPress代码高亮插件,在TinyMCE编辑器中提供了一个插入代码的按钮。在文本编辑器中,加入了pre-js,pre-css,pre-html 3个快捷按钮;
Stars: ✭ 60 (+185.71%)
Mutual labels:  prettify
tag-picker
Better tags input interaction with JavaScript.
Stars: ✭ 27 (+28.57%)
Mutual labels:  beautify
prettier-init
CLI for creating .prettierrc files
Stars: ✭ 34 (+61.9%)
Mutual labels:  prettify
python-makefun
Dynamically create python functions with a proper signature.
Stars: ✭ 62 (+195.24%)
Mutual labels:  decorate
commentator
A simple commenting system for your blog.
Stars: ✭ 29 (+38.1%)
Mutual labels:  comment
atom-perfectionist
Beautify CSS and SCSS
Stars: ✭ 19 (-9.52%)
Mutual labels:  beautify
comment-box.nvim
✨ Clarify and beautify your comments using boxes and lines.
Stars: ✭ 91 (+333.33%)
Mutual labels:  comment
InstaBot
Simple and friendly Bot for Instagram, using Selenium and Scrapy with Python.
Stars: ✭ 32 (+52.38%)
Mutual labels:  comment
styleguide-todo-grammar
/sBin/StyleGuide/ToDo
Stars: ✭ 19 (-9.52%)
Mutual labels:  comment
comment
Online Generator for Kary Foundation Comment System (KFCS) http://comment.kary.us
Stars: ✭ 20 (-4.76%)
Mutual labels:  comment
Sublime-Pretty-Shell
🐚 Shell Script Formatter / Syntax Checker (Powered by shfmt)
Stars: ✭ 28 (+33.33%)
Mutual labels:  beautify
label-actions
🤖 GitHub Action that performs certain tasks when issues, pull requests or discussions are labeled or unlabeled
Stars: ✭ 60 (+185.71%)
Mutual labels:  comment
CommentFrame.vim
Add Comments in Frames to the file you're editing, or Comments aligned on the Right side of a line. Customizable!
Stars: ✭ 42 (+100%)
Mutual labels:  comment
DanDanPlay-PHP
DanDanPlay远程访问 的 PHP 实现版本
Stars: ✭ 30 (+42.86%)
Mutual labels:  comment
pika
Quickly design beautiful screenshots and open graph images
Stars: ✭ 412 (+1861.9%)
Mutual labels:  beautify
comment-mark
Interpolate strings with HTML comment markers!
Stars: ✭ 21 (+0%)
Mutual labels:  comment
action-create-comment
💬 GitHub Action to create a comment
Stars: ✭ 30 (+42.86%)
Mutual labels:  comment

Prismo for Vim

Screencapture

Decorate section titles and separators in your code with ease using vim-prismo. This vim plugin centers your title beautifully and finally gives your OCD a well-deserved break.

Current state

vim-prismo was originally designed for much more, but for right now I'm settling for beautifying my inline comments. It is inspired by my previous plugin for Atom, AutoSect. I am a vim-script beginner and would be very open and excited for ideas and pull requests.

TODO

  • General improvements + proper documentation

  • Indentation-aware

  • Decoration pattern explicit declaration

    (meaning you would write: // ~ title, and it would expand to // ~~~~ TITLE ~~~~

Installation

Pathogen

$ cd ~/.vim/bundle
$ git clone https://github.com/guywald1/vim-prismo/

Alternatively, $ cd ~/.janus if you're using vim-janus like me (you totally should).

Vundle

Add...

Plugin 'guywald1/vim-prismo'

...between call vundle#begin() and call vundle#end() in your .vimrc.

Usage

Type the beginning of your inline comment, followed by a space, followed by your desired title. i.e. // your title here.

Call :Prismo and it will then become: // ------------- YOUR TITLE HERE ------------- (but spanning 80 characters wide - this is only for demonstration purposes).

Note: The inline comment style does not have to be //. As long as it a continuous sequence of characters, any inline comment style will do. For example, for BASH: # title will transform to # ------ TITLE ------.

The plugin will, by default, convert the title to uppercase.

Customization

Recommended mapping:

:nnoremap <leader>pr :Prismo<CR>

Settings

These are all customizable inside of your .vimrc:

let g:prismo_dash = '-' " the character to pad the title (dash by default)
let g:prismo_ruler = 80 " the rightmost edge to span your title
let g:prismo_toupper = 1 " whether to transform the title to uppercase

Contributions

...are absolutely 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].