Skip to content

bleakwind/vim-runscript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-runscript

Processing text through custom script commands...

vim-runscript is a Vim plugin that allows you to execute script files and process text content through custom commands.

Features

  • Automatically scans script directory and registers available scripts
  • Supports text selection processing
  • Supports parameter passing and result insertion

Screenshot

Runscript Screenshot

Requirements

Recommended Vim 8.1+

Installation

" Using Vundle
Plugin 'bleakwind/vim-runscript'

And Run:

:PluginInstall

Configuration

Add these to your .vimrc:

" Set 1 enable runscript (default: 0)
let g:runscript_enabled = 1
" Specifies the directory path for user-defined custom scripts (default: '')
let g:runscript_inpscpt = '/pub/_program/vim/_tool/runscript/script'
" Set runscript inputdata place (default: $HOME.'/.vim/runscript')
let g:runscript_inppath = g:config_dir_data.'runscript'
" Set runscript command (default: php)
let g:runscript_runcomm = 'php -d html_errors=0'

Put these to your .vimrc for quick access:

map  <Leader>r :<C-\>erunscript#ReadyComm()<CR>
vmap <Leader>r :<C-\>erunscript#ReadyComm()<CR>

Usage

  • Select text in visual mode
  • Press <Leader>r, and press tab select command and runscript
  • Selected text will be replaced with script output

License

BSD 2-Clause - See LICENSE file

About

RunScript processing text through custom script commands...

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors