App-EditorTools
view release on metacpan or search on metacpan
share/vim/editortools.vim view on Meta::CPAN
function! RenameVariable()
let newvar = input("New variable name? ")
if newvar == ""
echo "cancelling"
return
endif
let line = line('.')
" should backtrack to $ or % or the like
let col = col('.')
let filename = expand('%')
let command = "editortools renamevariable -c " . col . " -l " . line . " -r " . newvar
call Exec_command_and_replace_buffer( command )
endfunction
function! RenamePackageFromPath()
let line = line('.')
let col = col('.')
let filename = expand('%')
let command = "editortools renamepackagefrompath -f " . filename
call Exec_command_and_replace_buffer( command )
endfunction
function! IntroduceTemporaryVariable() range
let start_pos = getpos("'<")
let end_pos = getpos("'>")
let start_str = start_pos[1] . "," . start_pos[2]
( run in 0.794 second using v1.01-cache-2.11-cpan-5b529ec07f3 )