Merge pull request #2 from mandlm/feature/delay-load-code

Integrate delay-loading
pull/3/head
mandlm 2019-10-18 14:11:33 +02:00 committed by GitHub
commit 191ed066f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
function! SplitOpenFile(filename)
function splitopen#SplitOpenFile(filename)
execute("tabedit " . a:filename)
let l:file_extension = tolower(fnamemodify(a:filename, ":e"))
if l:file_extension == "cpp"
@ -9,5 +9,3 @@ function! SplitOpenFile(filename)
execute("wincmd h")
endif
endfunction
command! -nargs=1 SplitOpen :call SplitOpenFile("<args>")

1
plugin/splitopen.vim Normal file
View File

@ -0,0 +1 @@
command -nargs=1 SplitOpen :call splitopen#SplitOpenFile("<args>")