Skip to content

Commit

Permalink
🎨 Reset vim-polygolt
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchengxu committed Feb 26, 2017
1 parent 17f520a commit a997981
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
10 changes: 4 additions & 6 deletions core/autoload/spacevim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ let g:layers_loaded = []
let s:dot_spacevim = $HOME.'/.spacevim'
let s:spacevim_layers_dir = '/layers'
let s:spacevim_private_layers_dir = '/private'
let s:py_exe = has('python') ? 'python' : 'python3'


function! s:err(msg)
echohl ErrorMsg
Expand Down Expand Up @@ -128,9 +130,7 @@ endfunction
" get the pair topic to layers s:topic2layers, dict
function! spacevim#info() abort

let py_exe = has('python') ? 'python' : 'python3'

execute py_exe "<< EOF"
execute s:py_exe "<< EOF"
import os
import vim

Expand Down Expand Up @@ -225,9 +225,7 @@ endfunction

function! s:filter_plugins()

let py_exe = has('python') ? 'python' : 'python3'

execute py_exe "<< EOF"
execute s:py_exe "<< EOF"
import vim
exclude = vim.eval('g:spacevim_exclude')
my_plugins = vim.eval('g:spacevim_plugins')
Expand Down
2 changes: 1 addition & 1 deletion layers/+vim/programming/packages.vim
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ MP 'skywind3000/asyncrun.vim', { 'on': ['AsyncRun!', 'AsyncRun'] }

MP 'scrooloose/nerdcommenter', { 'on': '<Plug>NERDCommenterToggle' }

MP 'sheerun/vim-polyglot', { 'on': [] }
MP 'sheerun/vim-polyglot'

0 comments on commit a997981

Please sign in to comment.