-
<PYTHON>vim configFlower in my dev/Python 2015. 4. 6. 09:58
[Oh my zsh ~/.zshrc]
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation.
export ZSH="/Users/flower/.oh-my-zsh"
export PATH="/usr/local/sbin:$PATH"
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
export IPADDR="ifconfig en0 | grep inet | grep -v inet6 | cut -d ' ' -f2"
export IPDNS="cat /etc/resolv.conf"
export TERM=xterm-256color
eval "$(pyenv init -)"
bindkey "[D" backward-word
bindkey "[C" forward-word
bindkey "^[a" beginning-of-line
bindkey "^[e" end-of-line
figlet flower
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi
export PATH="/usr/local/opt/node@14/bin:$PATH"
# Set name of the theme to load --- if set to "random", it will
# load a random theme each time oh-my-zsh is loaded, in which case,
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
# ZSH_THEME="robbyrussell"
# ZSH_THEME="dst"
ZSH_THEME="awesomepanda"
# ZSH_THEME="blinks"
# ZSH_THEME="af-magic"
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
# a theme from this variable instead of looking in $ZSH/themes/
# If set to an empty array, this variable will have no effect.
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to use hyphen-insensitive completion.
# Case-sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to automatically update without prompting.
# DISABLE_UPDATE_PROMPT="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# Uncomment the following line if pasting URLs and other text is messed up.
# DISABLE_MAGIC_FUNCTIONS="true"
# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# Caution: this setting can cause issues with multiline prompts (zsh 5.7.1 and newer seem to work)
# See https://github.com/ohmyzsh/ohmyzsh/issues/5765
# COMPLETION_WAITING_DOTS="true"
# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.# You can set one of the optional three formats:
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="mm/dd/yyyy"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(
git
node
python
golang
aws
docker
django
zsh-autosuggestions
)
source $ZSH/oh-my-zsh.sh
# User configuration
# export MANPATH="/usr/local/man:$MANPATH"
# You may need to manually set your language environment
# export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
export AWS_ACCESS_KEY_ID="AKIATLCHTMHAUJRT7IKO"
export AWS_SECRET_ACCESS_KEY="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"
# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
##alias
alias l='ls -lh'
alias ll='ls -alh'
alias ls='ls -FG'
alias vi='vim'
alias hs='history 50'
alias jn='jupyter notebook --ip=0.0.0.0'
alias pv='pyenv virtualenv'
alias pa='pyenv activate'
alias pd='pyenv deactivate'
alias sl='storm list'
alias tf='terraform'
alias python3=$PYENV_ROOT/shims/python3
alias pip=$PYENV_ROOT/shims/pip3
alias python='traceback-with-variables'
alias sshi='ssh -i ~/aws-key/loopvm.pem'
alias idea='open -a "`ls -dt /Applications/IntelliJ\ IDEA*|head -1`"'
alias ipaddr="ifconfig en0 | grep inet | grep -v inet6 | cut -d ' ' -f2 && cat /etc/resolv.conf | grep nameserver"
alias iconsdk='cd /Users/flower/.pyenv/versions/3.7.8/lib/python3.7/site-packages/iconsdk'
alias gfs='git flow feature start'
alias gff='git flow feature finish'
alias grs='git flow release start'
alias grf='git flow release finish'[기본]
filetype off
call pathogen#runtime_append_all_bundles()
call pathogen#helptags()filetype on
syntax on
filetype plugin indent on
let g:pyflakes_use_quickfix = 0
let g:pep8_map='<leader>8'au FileType python set foldmethod=indent
au FileType python set foldlevel=99set nocompatible
set hi=1000
set bs=indent,eol,start
set enc=utf-8
set fenc=utf-8
set fencs=utf-8,cp949,cp932,euc-jp,shift-jis,big5,ucs-2le,latin1
set number
set background=dark
set autoindent
set smartindent
set ts=4
set sw=4
set sts=4
set title
set et
set ai
set smarttab
set ruler
set hlsearch" removing all trailing whitespace
autocmd FileType python autocmd BufWritePre * :%s/\s\+$//e
" improve the formatting and display of improper indentation
autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(" NERDTree
map <silent> <C-n> :NERDTreeToggle<CR>Vundle 사용법
1. 설치
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2. Plugin 검색
https://vimawesome.com/ << 추천
3. Plugin 등록 및 설치
- 등록
call vundle#begin()
여기에 등록
call vundle#end()
- 설치
.vimrc 파일을 저장하고 다시 열어서
:VundleInstall
아래와 같이 설치 됨.
오른쪽 설치, 왼쪽 vim
[기본 + NerdTree] python
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"
" " let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/syntastic'
Plugin 'vim-airline/vim-airline'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'kchmck/vim-coffee-script'
call vundle#end() " required
filetype plugin indent on " required
syntax on
filetype plugin indent on
let g:pyflakes_use_quickfix = 0
let g:pep8_map='<leader>8'
au FileType python set foldmethod=indent
au FileType python set foldlevel=99
set nocompatible
set modeline
set tabstop=8 expandtab shiftwidth=4 softtabstop=4
set hi=1000
set bs=indent,eol,start
set enc=utf-8
set fenc=utf-8
set fencs=utf-8,cp949,cp932,euc-jp,shift-jis,big5,ucs-2le,latin1
set number
set background=dark
set autoindent
set smartindent
set ts=4
set sw=4
set sts=4
set title
set et
set ai
set smarttab
set ruler
set hlsearch
" removing all trailing whitespace
autocmd FileType python autocmd BufWritePre * :%s/\s\+$//e
" improve the formatting and display of improper indentation
autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(
" NERDTree
map <F3> :NERDTreeToggle<CR>
"map <silent> <C-n> :NERDTreeToggle<CR>
let mapleader=","
nnoremap <Leader>rc :rightbelow vnew $MYVIMRC <CR>
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
nnoremap <C-F> :NERDTreddFInd<CR>
nnoremap <Leader>n :NERDTreeToggle<CR>
[기본 + NerdTree] javascript(nodejs, react)
filetype off
"call pathogen#runtime_append_all_bundles()
"call pathogen#helptags()" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'isRuslan/vim-es6'
Plugin 'scrooloose/nerdtree'
call vundle#end()filetype on
syntax on
filetype plugin indent on
let g:pyflakes_use_quickfix = 0
let g:pep8_map='<leader>8'
"React : .jsx => .js
let g:jsx_ext_required = 0au FileType python set foldmethod=indent
au FileType python set foldlevel=99set nocompatible
set hi=1000
set bs=indent,eol,start
set enc=utf-8
set fenc=utf-8
set fencs=utf-8,cp949,cp932,euc-jp,shift-jis,big5,ucs-2le,latin1
set number
set background=dark
set autoindent
set smartindent
set ts=4
set sw=4
set sts=4
set title
set et
set ai
set smarttab
set rulerset hlsearch
" removing all trailing whitespace
autocmd FileType python autocmd BufWritePre * :%s/\s\+$//e
" improve the formatting and display of improper indentation
autocmd FileType python set complete+=k~/.vim/syntax/python.vim isk+=.,(" NERDTree
map <F3> :NERDTreeToggle<CR>
"map <silent> <C-n> :NERDTreeToggle<CR>
let mapleader=","
nnoremap <Leader>rc :rightbelow vnew $MYVIMRC <CR>
noremap <C-h> <C-w>h
noremap <C-j> <C-w>j
noremap <C-k> <C-w>k
noremap <C-l> <C-w>l
nnoremap <C-F> :NERDTreddFInd<CR>
nnoremap <Leader>n :NERDTreeToggle<CR>'Flower in my dev > Python' 카테고리의 다른 글
<PYTHON>SQLite3 접속 (0) 2015.04.06 <PYTHON>PostgreSql 접속 (0) 2015.04.06 <PYTHON>[sys] (0) 2015.04.01 <PYTHON>[datetime, time] (0) 2015.04.01 <PYTHON>[os] (0) 2015.04.01