1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 05:40:05 +08:00
SpaceVim/vimrc

23 lines
849 B
VimL
Raw Normal View History

2017-12-12 16:32:21 +08:00
"=============================================================================
" vimrc --- Entry file for vim
" Copyright (c) 2016-2017 Shidong Wang & Contributors
" Author: Shidong Wang < wsdjeg at 163.com >
" URL: https://spacevim.org
2018-02-15 22:25:03 +08:00
" License: GPLv3
2017-12-12 16:32:21 +08:00
"=============================================================================
" Note: Skip initialization for vim-tiny or vim-small.
if 1
2019-10-08 22:24:03 +08:00
let g:_spacevim_if_lua = 0
if has('lua')
2019-10-11 23:07:03 +08:00
let s:plugin_dir = fnamemodify(expand('<sfile>'), ':h').'\lua'
let s:str = s:plugin_dir . '\?.lua;' . s:plugin_dir . '\?\init.lua;'
silent! lua package.path=vim.eval("s:str") .. package.path
if empty(v:errmsg)
2019-10-08 22:24:03 +08:00
let g:_spacevim_if_lua = 1
2019-10-11 23:07:03 +08:00
endif
2019-10-08 22:24:03 +08:00
endif
2018-05-02 20:26:58 +08:00
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
endif
2017-03-06 23:26:26 +08:00
" vim:set et sw=2