Linux 配置文件

来源:互联网 发布:怎么搭建卡盟网站源码 编辑:程序博客网 时间:2024/06/04 00:31

.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 aboutset hlsearchset incsearch" tab aboutset shiftwidth=4set tabstop=4" 将tab转换成空格set expandtabsyntax onset nobackupset noswapfileif 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  finishendiflet did_completes_me_loaded = 1function! 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>"  endifendfunctioninoremap <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.TrashesIcon?ehthumbs.dbThumbs.db# gtags ######################GPATHGRTAGSGSYMSGTAGS
0 0
原创粉丝点击