ianding1 / leetcode.vim

Solve LeetCode problems in Vim!
MIT License
308 stars 43 forks source link

A advice about default value #55

Closed Freed-Wu closed 3 years ago

Freed-Wu commented 4 years ago

about some default value, i recommend:

if !exists('g:leetcode_username')
  let g:leetcode_username = executable('git')?system('git config --global user.email'):expand('$HOST')
endif

and about 'g:leetcode_china', perhaps can use :language message or $LANG to determine default value?

it is just an advice. Thanks!