forked from VimPlug/emmet-vim
fixed problem about 'selection' option.
This commit is contained in:
@@ -1,8 +1,8 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" File: zencoding.vim
|
" File: zencoding.vim
|
||||||
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
" Author: Yasuhiro Matsumoto <mattn.jp@gmail.com>
|
||||||
" Last Change: 10-May-2010.
|
" Last Change: 11-May-2010.
|
||||||
" Version: 0.38
|
" Version: 0.39
|
||||||
" WebPage: http://github.com/mattn/zencoding-vim
|
" WebPage: http://github.com/mattn/zencoding-vim
|
||||||
" Description: vim plugins for HTML and CSS hi-speed coding.
|
" Description: vim plugins for HTML and CSS hi-speed coding.
|
||||||
" SeeAlso: http://code.google.com/p/zen-coding/
|
" SeeAlso: http://code.google.com/p/zen-coding/
|
||||||
@@ -1456,7 +1456,10 @@ function! s:zen_expandAbbr(mode) range
|
|||||||
endif
|
endif
|
||||||
silent! exe "normal! ".len(part)."h"
|
silent! exe "normal! ".len(part)."h"
|
||||||
if search('\$cursor\$', 'e')
|
if search('\$cursor\$', 'e')
|
||||||
|
let oldselection = &selection
|
||||||
|
let &selection = 'inclusive'
|
||||||
silent! exe "normal! v7h\"_s"
|
silent! exe "normal! v7h\"_s"
|
||||||
|
let &selection = oldselection
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ script_name: ZenCoding.vim
|
|||||||
script_id: '2981'
|
script_id: '2981'
|
||||||
script_type: utility
|
script_type: utility
|
||||||
script_package: zencoding.vim
|
script_package: zencoding.vim
|
||||||
script_version: '0.38'
|
script_version: '0.39'
|
||||||
required_vim_version: '7.0'
|
required_vim_version: '7.0'
|
||||||
summary: vim plugins for HTML and CSS hi-speed coding.
|
summary: vim plugins for HTML and CSS hi-speed coding.
|
||||||
|
|
||||||
@@ -95,6 +95,8 @@ install_details: |
|
|||||||
copy zencoding.vim to your plugin directory.
|
copy zencoding.vim to your plugin directory.
|
||||||
|
|
||||||
versions:
|
versions:
|
||||||
|
- '0.39': |
|
||||||
|
This is an upgrade for ZenCoding.vim: fixed problem about 'selection'. see http://github.com/mattn/zencoding-vim/issues/#issue/2
|
||||||
- '0.38': |
|
- '0.38': |
|
||||||
This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace.
|
This is an upgrade for ZenCoding.vim: use v7h"_s instead of v7hs for backspace.
|
||||||
- '0.37': |
|
- '0.37': |
|
||||||
|
|||||||
Reference in New Issue
Block a user