.bash_aliases
alias gst='git status'
alias gl='git pull'
alias gp='git push'
alias gd='git diff | mate'
alias gau='git add --update'
alias gc='git commit -v'
alias gca='git commit -v -a'
alias gb='git branch'
alias gba='git branch -a'
alias gbd='git branch -d'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcot='git checkout -t'
alias gcotb='git checkout --track -b'
alias glog='git log'
alias glogp='git log --pretty=format:"%h %s" --graph'
#按时间排序,以列的形式输出当前目录和文件
alias lsl='ls -lrt'
.vimrc
set nu
" search about set hlsearch set incsearch " tab about
set shiftwidth=4
set tabstop=4
" 将tab转换成空格 set expandtab syntax on set nobackup set noswapfile if exists('$TMUX') let &t_SI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=1\x7\<Esc>\\" let &t_EI = "\<Esc>Ptmux;\<Esc>\<Esc>]50;CursorShape=0\x7\<Esc>\\" else let &t_SI = "\<Esc>]50;CursorShape=1\x7" let &t_EI = "\<Esc>]50;CursorShape=0\x7" endif " Take <tab> for word complete only
" The 'complete' option controls where the keywords are searched (include files, tag files, buffers, and more). " The 'completeopt' option controls how the completion occurs (for example, whether a menu is shown).
if exists('did_completes_me_loaded') || v:version < 700
finish
endif
let did_completes_me_loaded = 1
function! s:completes_me(shift_tab)
let dirs = ["\<c-p>", "\<c-n>"]
if pumvisible()
if a:shift_tab
return dirs[0]
else
return dirs[1]
endif
endif
" Figure out whether we should indent. let pos = getpos('.') let substr = matchstr(strpart(getline(pos[1]), 0, pos[2]-1), "[^ \t]*$") if strlen(substr) == 0 | return "\<Tab>" | endif if a:shift_tab return "\<c-p>" else return "\<c-n>" endif endfunction inoremap <expr> <plug>completes_me_forward <sid>completes_me(0) inoremap <expr> <plug>completes_me_backward <sid>completes_me(1) imap <Tab> <plug>completes_me_forward
.gitignore_global
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
# Packages #
############
*.7z
*.dmg
*.gz
*.iso
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
Icon?
ehthumbs.db
Thumbs.db
# gtags #
#####################
GPATH
GRTAGS
GSYMS
GTAGS
.tmux.conf
setw -g mode-keys vi
set -g prefix C-x
unbind C-b
set-option -g allow-rename off
还没有评论,来说两句吧...