1
0

Use python-mode in termux

This commit is contained in:
2019-09-30 12:03:04 +02:00
parent e50c7d44cd
commit 5057526f7d

69
vimrc
View File

@ -1,29 +1,42 @@
" For platform specific settings
let hostname = substitute(system('hostname'), '\n', '', '')
" Plugin management " Plugin management
set nocompatible set nocompatible
filetype off filetype off
set rtp+=~/.vim/bundle/Vundle.vim set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin() call vundle#begin()
Plugin 'VundleVim/Vundle.vim' Plugin 'VundleVim/Vundle.vim'
" Status Line
Plugin 'vim-airline/vim-airline'
" Explorer " Explorer
Plugin 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' } Plugin 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" File search " File search
Plugin 'ctrlpvim/ctrlp.vim' Plugin 'ctrlpvim/ctrlp.vim'
" Class explorer " Class explorer
Plugin 'majutsushi/tagbar', { 'on': 'TagbarToggle' } Plugin 'majutsushi/tagbar', { 'on': 'TagbarToggle' }
" Status Line
Plugin 'vim-airline/vim-airline'
" Intelligent folding
Plugin 'tmhedberg/SimpylFold'
" Git management
Plugin 'tpope/vim-fugitive'
" Autocomplete for python
Plugin 'davidhalter/jedi-vim'
" Asynchronous syntax check
Plugin 'dense-analysis/ale'
" Color schemes
Plugin 'morhetz/gruvbox'
" Code completion using <tab> " Code completion using <tab>
Plugin 'ervandew/supertab' Plugin 'ervandew/supertab'
if hostname == "localhost"
" Python IDE-like
Plugin 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
else
" Autocomplete for python
Plugin 'davidhalter/jedi-vim'
" Asynchronous syntax check
Plugin 'dense-analysis/ale'
" Intelligent folding
Plugin 'tmhedberg/SimpylFold'
endif
" Git management
Plugin 'tpope/vim-fugitive'
" Color schemes
Plugin 'morhetz/gruvbox'
<<<<<<< HEAD
=======
" Code completion using <tab>
Plugin 'ervandew/supertab'
>>>>>>> c7499ab8bd1242702abaee5b9301a6b6e30886f8
call vundle#end() call vundle#end()
filetype plugin indent on filetype plugin indent on
@ -58,7 +71,11 @@ set list listchars=tab:▷⋅,trail:⋅,nbsp:⋅
" set nowrap " set nowrap
set hlsearch set hlsearch
set incsearch set incsearch
<<<<<<< HEAD
set foldlevel=2
=======
set foldlevel=3 set foldlevel=3
>>>>>>> c7499ab8bd1242702abaee5b9301a6b6e30886f8
set colorcolumn=80 set colorcolumn=80
" Behaviour " Behaviour
@ -77,16 +94,22 @@ nmap <F6> :!%:p<CR>
nmap <F7> :NERDTreeToggle<CR> nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR> nmap <F8> :TagbarToggle<CR>
" Plugin Ale " Plugin config
packloadall
silent! helptags ALL
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['eslint'],
\ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort']
\}
" Other Plugin
let g:SimpylFold_docstring_preview=1 let g:SimpylFold_docstring_preview=1
let g:airline#extensions#tabline#enabled=1 let g:airline#extensions#tabline#enabled=1
let g:airline_powerline_fonts=1
if hostname == "localhost"
let g:pymode_rope=1
let g:pymode_folding=1
else
let g:airline_powerline_fonts=1
" Plugin Ale
packloadall
silent! helptags ALL
let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\ 'javascript': ['eslint'],
\ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort']
\}
endif