python, docker_clean_images, scp

This commit is contained in:
hophacker 2017-05-12 18:27:04 +08:00
parent 013405a3a6
commit 6867617f8f
4 changed files with 10 additions and 9 deletions

View File

@ -7,7 +7,7 @@ let g:pymode_run_bind = "<C-S-e>"
" Override view python doc key shortcut to Ctrl-Shift-d
let g:pymode_doc_bind = "<C-S-d>"
let g:pymode_lint_ignore = "W0611"
let g:pymode_options_max_line_length=120
let g:pymode_options_max_line_length=160
augroup filetype_python
autocmd!
@ -18,7 +18,5 @@ augroup filetype_python
autocmd FileType python setlocal statusline=%f-%y-[%l]/[%L]
autocmd FileType python nnoremap <buffer> <localleader>c I#cesc>
autocmd FileType python :iabbrev <buffer> iff if:<left>
autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
autocmd FileType python match Excess /\%120v.*/
autocmd FileType python set nowrap
augroup END

View File

@ -11,8 +11,8 @@ let g:syntastic_quiet_messages = {'level': 'warnings'}
" ~/.vimrc.after
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_python_flake8_args='--ignore=F401,F403,F405,W0401'
" let g:syntastic_python_pylint_post_args="--max-line-length=120"
let g:syntastic_python_flake8_args='--ignore=F401,F403,F405,W0401,E501'
let g:syntastic_python_pylint_post_args="--max-line-length=160"
" I have no idea why this is not working, as it used to

2
vimrc
View File

@ -119,7 +119,7 @@ set smartcase " ...unless we type a capital
" ================ Python ===========================
autocmd FileType python set colorcolumn=120
autocmd FileType python set colorcolumn=160
" ================ Custom Settings ========================
so ~/.yadr/vim/settings.vim

View File

@ -241,10 +241,13 @@ case "$OSTYPE" in
;;
esac
alias ssh_by_password='ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no'
alias ssh_copy_id_by_password='ssh-copy-id -o PreferredAuthentications=password -o PubkeyAuthentication=no'
alias ssh_="ssh -F .ssh/config"
alias scp_="scp -F .ssh/config"
alias ssh_copy_id='ssh-copy-id -o PreferredAuthentications=password -o PubkeyAuthentication=no'
alias ssh_="ssh -F ~/Projects/rallets-server/rallets-fabric/.ssh/config"
alias scp_="scp -F ~/Projects/rallets-server/rallets-fabric/.ssh/config"
alias chrome_proxy="google-chrome --proxy-server='http://127.0.0.1:8118'"
alias ls_folder_size="du -sch .[!.]* * |sort -h"
alias top_by_memory="top -o %MEM"
alias gcaa="gia .; gcF"
alias ror_ctags="ctags -R --languages=ruby --exclude=.git --exclude=log . \$(bundle list --paths)"
alias docker_clean_images='docker rmi $(docker images -a --filter=dangling=true -q)'