Use python-mode in termux
This commit is contained in:
69
vimrc
69
vimrc
@ -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'
|
||||
" Autocomplete for python
|
||||
Plugin 'davidhalter/jedi-vim'
|
||||
" Asynchronous syntax check
|
||||
Plugin 'dense-analysis/ale'
|
||||
" Color schemes
|
||||
Plugin 'morhetz/gruvbox'
|
||||
" 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,16 +94,22 @@ nmap <F6> :!%:p<CR>
|
||||
nmap <F7> :NERDTreeToggle<CR>
|
||||
nmap <F8> :TagbarToggle<CR>
|
||||
|
||||
" 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']
|
||||
\}
|
||||
|
||||
" Other Plugin
|
||||
" Plugin config
|
||||
let g:SimpylFold_docstring_preview=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
|
||||
|
Reference in New Issue
Block a user