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 " 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 " Code completion using <tab>
Plugin 'vim-airline/vim-airline' Plugin 'ervandew/supertab'
" Intelligent folding if hostname == "localhost"
Plugin 'tmhedberg/SimpylFold' " Python IDE-like
" Git management Plugin 'python-mode/python-mode', { 'for': 'python', 'branch': 'develop' }
Plugin 'tpope/vim-fugitive' else
" Autocomplete for python " Autocomplete for python
Plugin 'davidhalter/jedi-vim' Plugin 'davidhalter/jedi-vim'
" Asynchronous syntax check " Asynchronous syntax check
Plugin 'dense-analysis/ale' Plugin 'dense-analysis/ale'
" Intelligent folding
Plugin 'tmhedberg/SimpylFold'
endif
" Git management
Plugin 'tpope/vim-fugitive'
" Color schemes " Color schemes
Plugin 'morhetz/gruvbox' Plugin 'morhetz/gruvbox'
<<<<<<< HEAD
=======
" Code completion using <tab> " Code completion using <tab>
Plugin 'ervandew/supertab' 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,6 +94,16 @@ nmap <F6> :!%:p<CR>
nmap <F7> :NERDTreeToggle<CR> nmap <F7> :NERDTreeToggle<CR>
nmap <F8> :TagbarToggle<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 " Plugin Ale
packloadall packloadall
silent! helptags ALL silent! helptags ALL
@ -85,8 +112,4 @@ let g:ale_fixers = {
\ 'javascript': ['eslint'], \ 'javascript': ['eslint'],
\ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort'] \ 'python': ['add_blank_lines_for_python_control_statements', 'autopep8', 'isort']
\} \}
endif
" Other Plugin
let g:SimpylFold_docstring_preview=1
let g:airline#extensions#tabline#enabled=1
let g:airline_powerline_fonts=1