2017-03-12 03:04:40 +08:00
|
|
|
let javascript_enable_domhtmlcss = 0
|
|
|
|
let javascript_ignore_javaScriptdoc = 0
|
|
|
|
let g:javascript_conceal=0
|
|
|
|
let b:javascript_fold=1
|
2018-11-27 10:12:57 +08:00
|
|
|
|
|
|
|
function! IndexComponentSwitch()
|
|
|
|
let b:filename=expand('%')
|
|
|
|
if b:filename =~ 'index\.js$'
|
|
|
|
execute 'edit' substitute(b:filename, "index.js", "component.js", "")
|
|
|
|
else
|
|
|
|
execute 'edit' substitute(b:filename, "component.js", "index.js", "")
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
au FileType javascript nmap <leader>s :call IndexComponentSwitch()<cr>
|