Skip to content

Commit

Permalink
trim space white
Browse files Browse the repository at this point in the history
  • Loading branch information
huangguozhen committed Dec 21, 2015
1 parent d368eea commit d3eb4e2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -1197,23 +1197,23 @@
endfor
return s:is_fork
endfunction

function! s:ExpandFilenameAndExecute(command, file)
execute a:command . " " . expand(a:file, ":p")
endfunction

function! s:EditSpf13Config()
call <SID>ExpandFilenameAndExecute("tabedit", "~/.vimrc")
call <SID>ExpandFilenameAndExecute("vsplit", "~/.vimrc.before")
call <SID>ExpandFilenameAndExecute("vsplit", "~/.vimrc.bundles")

execute bufwinnr(".vimrc") . "wincmd w"
call <SID>ExpandFilenameAndExecute("split", "~/.vimrc.local")
wincmd l
call <SID>ExpandFilenameAndExecute("split", "~/.vimrc.before.local")
wincmd l
call <SID>ExpandFilenameAndExecute("split", "~/.vimrc.bundles.local")

if <SID>IsSpf13Fork()
execute bufwinnr(".vimrc") . "wincmd w"
call <SID>ExpandFilenameAndExecute("split", "~/.vimrc.fork")
Expand All @@ -1222,10 +1222,10 @@
wincmd l
call <SID>ExpandFilenameAndExecute("split", "~/.vimrc.bundles.fork")
endif

execute bufwinnr(".vimrc.local") . "wincmd w"
endfunction

execute "noremap " . s:spf13_edit_config_mapping " :call <SID>EditSpf13Config()<CR>"
execute "noremap " . s:spf13_apply_config_mapping . " :source ~/.vimrc<CR>"
" }
Expand Down

0 comments on commit d3eb4e2

Please sign in to comment.