Skip to content

Instantly share code, notes, and snippets.

@Shusei-E
Last active March 21, 2016 02:07
Show Gist options
  • Save Shusei-E/89b4ed836b0add6f79a9 to your computer and use it in GitHub Desktop.
Save Shusei-E/89b4ed836b0add6f79a9 to your computer and use it in GitHub Desktop.
call neobundle#begin(expand('~/.vim/bundle/'))
...
" Geeknote
NeoBundle 'neilagabriel/vim-geeknote'
nnoremap <Leader>gl :Geeknote<cr>
nnoremap <Leader>gs :GeeknoteSearch<Space>
nnoremap <Leader>gc :GeeknoteCreateNote<Space>
let g:GeeknoteMaxExplorerWidth=60
let g:GeeknoteFormat="markdown"
call neobundle#end() " この前に入れること
" 参考: http://qiita.com/tmsanrinsha/items/cfa3808b8d0cc915cd75
" VimのPythonインターフェースのパスの問題を解消する
" Geeknote使うときのPythonの問題の解消
NeoBundleLazy 'neilagabriel/vim-geeknote', {
\ 'autoload': {'filetypes': ['python']}
\}
:
" pythonのsys.pathの設定 " {{{
let s:python_path = system('python -', 'import sys;sys.stdout.write(",".join(sys.path))')
python <<EOM
import sys
import vim
python_paths = vim.eval('s:python_path').split(',')
for path in python_paths:
if not path in sys.path:
sys.path.insert(0, path)
EOM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment