Refactoring tool for Coffeescript in vim! same feeling has vim-ruby-refactoring Thanks to AndrewRadev
new idea, bugs... please open issue.
You have some spec or exemple, please forkit and add them to the tests and make a pull request :)
You know vimscript please take an issue i will merge tested pull request :)
:CRAddParameter - Add Parameter
:CRExtractMethod - Extract Method
Now you can install the plugin and try extract method. this is a very early version. To play with it add this to your .vimrc
nnoremap <leader>cem :call CRExtractMethod()<cr>
For any problem please open an issue
vim-coffeescript-refactoring follows the standard runtime path structure, so I highly recommend to use a common and well known plugin manager to install vim-coffeescript-refactoring. For Pathogen just clone the repo, for other plugin managers add the appropriate lines and execute the plugin's install command.
- Pathogen
git clone https://github.com/ranska/vim-coffeescript-refactoring.git ~/.vim/bundle/vim-coffeescript-refactoring
- vim-plug
Plug 'ranska/vim-coffeescript-refactoring'
- NeoBundle
NeoBundle 'ranska/vim-coffeescript-refactoring'
- Vundle
Plugin 'ranska/vim-coffeescript-refactoring'
- Manual
- Copy all of the files into your
~/.vim
directory
- test on travis
- improve practive in vimrunner
- vundle pathogen compatible
- augroup filetype_vim
- nnoramp default write on readme
:CRInlineTemp - Inline Temp
:CRConvertPostConditional - Convert Post Conditional
:CRExtractConstant - Extract Constant
:CRExtractLocalVariable - Extract Local Variable
:CRRenameLocalVariable - Rename Local Variable
:CRRenameInstanceVariable - Rename Instance Variable
Use rspec
rspec spec/plugin/add_parameter_spec.rb