1
0

Use python-mode in termux

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

45
vimrc
View File

@ -1,29 +1,42 @@
" For platform specific settings
let hostname = substitute(system('hostname'), '\n', '', '')
" Plugin management
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
" Status Line
Plugin 'vim-airline/vim-airline'
" Explorer
Plugin 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
" File search
Plugin 'ctrlpvim/ctrlp.vim'
" Class explorer
Plugin 'majutsushi/tagbar', { 'on': 'TagbarToggle' }
" Status Line
Plugin 'vim-airline/vim-airline'
" Intelligent folding
Plugin 'tmhedberg/SimpylFold'
" Git management
Plugin 'tpope/vim-fugitive'
" Code completion using <tab>
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()
filetype plugin indent on
@ -58,7 +71,11 @@ set list listchars=tab:▷⋅,trail:⋅,nbsp:⋅
" set nowrap
set hlsearch
set incsearch
<<<<<<< HEAD
set foldlevel=2
=======
set foldlevel=3
>>>>>>> c7499ab8bd1242702abaee5b9301a6b6e30886f8
set colorcolumn=80
" Behaviour
@ -77,6 +94,16 @@ nmap <F6> :!%:p<CR>
nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<CR>
" Plugin config
let g:SimpylFold_docstring_preview=1
let g:airline#extensions#tabline#enabled=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
@ -85,8 +112,4 @@ let g:ale_fixers = {
\ 'javascript': ['eslint'],
\ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort']
\}
" Other Plugin
let g:SimpylFold_docstring_preview=1
let g:airline#extensions#tabline#enabled=1
let g:airline_powerline_fonts=1
endif