forked from SpaceVim/SpaceVim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
27 lines (26 loc) · 1.06 KB
/
vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
"=============================================================================
" vimrc --- Entry file for vim
" Copyright (c) 2016-2020 Shidong Wang & Contributors
" Author: Shidong Wang < [email protected] >
" URL: https://spacevim.org
" License: GPLv3
"=============================================================================
" Note: Skip initialization for vim-tiny or vim-small.
if 1
let g:_spacevim_if_lua = 0
if has('lua')
if has('win16') || has('win32') || has('win64')
let s:plugin_dir = fnamemodify(expand('<sfile>'), ':h').'\lua'
let s:str = s:plugin_dir . '\?.lua;' . s:plugin_dir . '\?\init.lua;'
else
let s:plugin_dir = fnamemodify(expand('<sfile>'), ':h').'/lua'
let s:str = s:plugin_dir . '/?.lua;' . s:plugin_dir . '/?/init.lua;'
endif
silent! lua package.path=vim.eval("s:str") .. package.path
if empty(v:errmsg)
let g:_spacevim_if_lua = 1
endif
endif
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/main.vim'
endif
" vim:set et sw=2