Last active
November 20, 2016 00:03
-
-
Save ringe/ca6b9647de743fb56695a3b0e03b49c0 to your computer and use it in GitHub Desktop.
Transform ActiveRecord db/schema.rb field lines to Rdoc list item with Vim
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" use :RDF after copying lines from db/schema.rb to the class documentation | |
" the command transforms db/schema.rb lines to RDoc formatted list item | |
command -range=% RDF <line1>,<line2>s/\s\+t\.\(\w\+\)\s\+"\(.*\)"\($\|,.*\)/# +:\2+ _\1_::/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Changed the command to create a description list