vim-dwre


Ⅰ. 插件描述

Vim syntax files for ISML and DSscript

Ⅱ. 基本信息

创建日期:  2015-11-23
使用用户:  6
Github星:  6
插件作者:  Charles Lavery

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'clavery/vim-dwre'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'clavery/vim-dwre'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'clavery/vim-dwre'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/clavery/vim-dwre

Ⅳ. 文档说明

# vim-dwre

Vim syntax, indenting and support files for editing Demandware ISML and DSscripts.

Ale Linter For XSDs

let g:ale_linters = {
\   'xml': ['dwrexmllint'],
\}
let g:ale_xml_dwrexmllint_schema_path = '/path/to/dwre/xsds'

Debug

Example Configuration

" DWRE
" override terminal open to be vertical split instead of horizontal
let g:DWREDebugVertical = 1

" add a breakpoint
autocmd FileType dsscript nnoremap <buffer> <leader>da :DWREAdd<cr>
" delete the breakpoint
autocmd FileType dsscript nnoremap <buffer> <leader>dd :DWREDel<cr>
" clear all breakpoints
autocmd FileType dsscript nnoremap <buffer> <leader>dr :DWREReset<cr>

" launch the debugger or continue execution
nnoremap <f5> :DWREDebugStartContinue<cr>
" next statement
nnoremap <f6> :DWREDebugNext<cr>
" jump into function
nnoremap <f7> :DWREDebugInto<cr>
" jump out of function
nnoremap <f8> :DWREDebugOut<cr>
" stop debugging and terminate debugger
nnoremap <f9> :DWREDebugStop<cr>
" Jump to current halted location, if halted
nnoremap <leader>dj :silent DWREDebugJump<cr>
" Print info on expression under cursor
autocmd FileType dsscript nnoremap <buffer> K :DWREDebugPrint<cr>

" highlight line of current location
highlight DWRELocation guibg=#666666

添加新评论