2018年11月21日 星期三

[RPi] 在RPi設定Python開發環境(vim-jadi)

  1. Install Pathogen
    mkdir -p ~/.vim/autoload ~/.vim/bundle && \
    curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
    
  2. Configure.vimrc
    if you have a ~/.vimrc file: add the following line to it
    execute pathogen#infect()
    
    else: create a blank file named .vimrc at your home folder and add the following lines to it.
    execute pathogen#infect()
    syntax on
    filetype plugin indent on
    
  3. Install Jedi.
    cd ~/.vim/bundle/ && git clone --recursive https://github.com/davidhalter/jedi-vim.git
    

https://stackoverflow.com/questions/21628743/cant-get-the-jedi-vim-plugin-to-work


ctrl + ] ==> jump into
ctrl + t ==> back
https://myapollo.com.tw/2016/03/17/python-vim-ctags/

建立ctags
ctags -R -o ~/pim25tags /home/pi/PiM25/

直接執行python
nnoremap :exec '!python' shellescape(@%, 1)

沒有留言: