Skip to content

Instantly share code, notes, and snippets.

@lshaf
Created April 30, 2019 10:48
Show Gist options
  • Save lshaf/36f52f7cca8a02f045031273b958cfb7 to your computer and use it in GitHub Desktop.
Save lshaf/36f52f7cca8a02f045031273b958cfb7 to your computer and use it in GitHub Desktop.
Best setting for termux

Install best ux

sh -c "$(curl -fsSL https://github.com/Cabbagec/termux-ohmyzsh/raw/master/install.sh)"

for more advance

https://realpython.com/vim-and-python-a-match-made-in-heaven/

config vimrc

run

apt install vim-python
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim

create ~/.vimrc

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
Plugin 'vim-scripts/indentpython.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim'}
Plugin 'davidhalter/jedi-vim'

let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore some files

call vundle#end()
" Brief help
" :PluginList
" :PluginInstall
" :PluginSearch foo 
" :PluginClean      

filetype plugin indent on

set clipboard=unnamed
set tabstop=4
set shiftwidth=4
set encoding=utf-8
set nu

au BufNewFile,BufRead *.py
    \ set softtabstop=4 |
    \ set textwidth=79 |
    \ set expandtab |
    \ set autoindent |
    \ set fileformat=unix

au BufNewFile,BufRead *.js, *.html, *.css
    \ set tabstop=2 |
    \ set softtabstop=2 |
    \ set shiftwidth=2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment