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)
|
||||
endfunction
|
||||
|
||||
|
||||
function! <SID>FindProjectFileOrDirectory(fod)
|
||||
let l:dir = getcwd()
|
||||
" Search up the path, starting at the current working directory, for the
|
||||
|
@ -197,14 +198,17 @@ function! <SID>FindProjectFileOrDirectory(fod)
|
|||
return ""
|
||||
endfunction
|
||||
|
||||
|
||||
function! GetProjectRuntimeDirectory()
|
||||
return <SID>FindProjectFileOrDirectory("vim")
|
||||
endfunction
|
||||
|
||||
|
||||
function! GetProjectFile()
|
||||
return <SID>FindProjectFileOrDirectory("project.vim")
|
||||
endfunction
|
||||
|
||||
|
||||
function! <SID>SourceProjectFile()
|
||||
let l:project_file = GetProjectFile()
|
||||
if l:project_file != ""
|
||||
|
@ -212,6 +216,7 @@ function! <SID>SourceProjectFile()
|
|||
endif
|
||||
endfunction
|
||||
|
||||
|
||||
function! <SID>AddProjectRuntimeDirectory()
|
||||
let l:project_rtp = GetProjectRuntimeDirectory()
|
||||
if isdirectory(l:project_rtp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue