commit
191ed066f7
|
@ -1,4 +1,4 @@
|
||||||
function! SplitOpenFile(filename)
|
function splitopen#SplitOpenFile(filename)
|
||||||
execute("tabedit " . a:filename)
|
execute("tabedit " . a:filename)
|
||||||
let l:file_extension = tolower(fnamemodify(a:filename, ":e"))
|
let l:file_extension = tolower(fnamemodify(a:filename, ":e"))
|
||||||
if l:file_extension == "cpp"
|
if l:file_extension == "cpp"
|
||||||
|
@ -9,5 +9,3 @@ function! SplitOpenFile(filename)
|
||||||
execute("wincmd h")
|
execute("wincmd h")
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
command! -nargs=1 SplitOpen :call SplitOpenFile("<args>")
|
|
|
@ -0,0 +1 @@
|
||||||
|
command -nargs=1 SplitOpen :call splitopen#SplitOpenFile("<args>")
|
Loading…
Reference in New Issue