Extra linebreaks in vimrc
This commit is contained in:
parent
4129bc6022
commit
5b3bc2653b
1 changed files with 5 additions and 0 deletions
5
vimrc
5
vimrc
|
@ -183,6 +183,7 @@ function! <SID>strip_trailing_whitespace()
|
||||||
call cursor(l, c)
|
call cursor(l, c)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! <SID>FindProjectFileOrDirectory(fod)
|
function! <SID>FindProjectFileOrDirectory(fod)
|
||||||
let l:dir = getcwd()
|
let l:dir = getcwd()
|
||||||
" Search up the path, starting at the current working directory, for the
|
" Search up the path, starting at the current working directory, for the
|
||||||
|
@ -197,14 +198,17 @@ function! <SID>FindProjectFileOrDirectory(fod)
|
||||||
return ""
|
return ""
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! GetProjectRuntimeDirectory()
|
function! GetProjectRuntimeDirectory()
|
||||||
return <SID>FindProjectFileOrDirectory("vim")
|
return <SID>FindProjectFileOrDirectory("vim")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! GetProjectFile()
|
function! GetProjectFile()
|
||||||
return <SID>FindProjectFileOrDirectory("project.vim")
|
return <SID>FindProjectFileOrDirectory("project.vim")
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! <SID>SourceProjectFile()
|
function! <SID>SourceProjectFile()
|
||||||
let l:project_file = GetProjectFile()
|
let l:project_file = GetProjectFile()
|
||||||
if l:project_file != ""
|
if l:project_file != ""
|
||||||
|
@ -212,6 +216,7 @@ function! <SID>SourceProjectFile()
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
||||||
function! <SID>AddProjectRuntimeDirectory()
|
function! <SID>AddProjectRuntimeDirectory()
|
||||||
let l:project_rtp = GetProjectRuntimeDirectory()
|
let l:project_rtp = GetProjectRuntimeDirectory()
|
||||||
if isdirectory(l:project_rtp)
|
if isdirectory(l:project_rtp)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue