Skip to content

CLZamb/vim-ruby-generate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚧 NOTE: vimrg is a work-in-progress and in active development! 🚧

Ruby Generate.vim

This plugin provides the ability to generate code in ruby using the provided mappings.

Mapping

  • <leader>ga - Generate attr_accessor with the variables given
  • <leader>gg - Generate getter with the variables given
  • <leader>gr - Generate setter with the variables given
  • <leader>gw - Generate writter with the variables given
  • <leader>gv - Generate private variables with the variables given
  • <leader>gb - Generate public variables with the variables given
  • <leader>gt - Generate protected variables with the variables given

Examples:

Visual

coming soon

Configuration

chossing the position inside of class default layout

    let g:ruby_generatePositions = {
          \ 'getter':        'bottom',
          \ 'setter':        'bottom',
          \ 'writer':        'top',
          \ 'reader':        'top',
          \ 'accessor':      'top',
          \ 'publicVars':    'bottom',
          \ 'privateVars':   'bottom',
          \ 'protectedVars': 'bottom',
          \ }

About

On Development, not ready to be used

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published