mirror of
https://github.com/Raimondi/delimitMate.git
synced 2025-12-06 12:44:27 +08:00
33 lines
1.0 KiB
Plaintext
33 lines
1.0 KiB
Plaintext
#
|
|
%d
|
|
filetype indent on
|
|
set bs=2 et sts=4 sw=4 ft=javascript
|
|
call setline(1, '$(document).ready(function() {})')
|
|
DelimitMateReload
|
|
exec "normal 31|i\<CR>x\<Esc>"
|
|
================================================================================
|
|
$(document).ready(function() {
|
|
x
|
|
})
|
|
--------------------------------------------------------------------------------
|
|
# Issue #95
|
|
new
|
|
exec "normal i(\<CR>test)x"
|
|
================================================================================
|
|
(
|
|
test
|
|
)x
|
|
--------------------------------------------------------------------------------
|
|
# Remove CR expansion on BS
|
|
%d
|
|
exec "normal i(\<CR>\<BS>x"
|
|
================================================================================
|
|
(x)
|
|
--------------------------------------------------------------------------------
|
|
# Consider indentation with BS inside an empty CR expansion.
|
|
%d
|
|
exec "normal i( \<CR>\<BS>\<BS>x"
|
|
================================================================================
|
|
(x)
|
|
--------------------------------------------------------------------------------
|