lookupfile 在新标签中打开文件

来源:互联网 发布:ps手绘软件 编辑:程序博客网 时间:2024/05/17 09:31

inoremap <silent> <buffer> <expr> <S-t> <SID>TabOpenFile()



function! s:TabOpenFile()
     let fileName = getline('.')
     call lookupfile#CloseWindow()
     return "\<Esc>:q\<CR>:tabnew " . fileName . "\<CR>"

 endfunction

原创粉丝点击