macbook备份

MacBook-Air:Library yansy$ cat ~/.vimrc
"set wildignorecase
:map , oerror_log(print_r($array,1),3,"/tmp/1.txt");error_log("================",3,"/tmp/1.txt");
set number
set fileencodings=utf-8,ucs-bom,gb18030,gbk,gb2312,cp936
set termencoding=utf-8
set encoding=utf-8
set hlsearch
set ignorecase
set nocompatible " 去除VI一致性,必须要添加
filetype off " 必须要添加

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
"call vundle#begin('~/some/path/here')
Plugin 'VundleVim/Vundle.vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'tpope/vim-surround'
Plugin 'MattesGroeger/vim-bookmarks'
set rtp+=/root/fzf/
Plugin 'junegunn/fzf.vim'
Plugin 'vim-scripts/mru.vim'
Plugin 'L9'
Plugin 'AutoComplPop'
Bundle 'msanders/snipmate.vim'
Bundle 'Townk/vim-autoclose'
Plugin 'w0ng/vim-hybrid'
Plugin 'altercation/vim-colors-solarized'
Plugin 'morhetz/gruvbox'
Plugin 'itchyny/vim-cursorword'
Plugin 'lfv89/vim-interestingwords'
Plugin 'yggdroot/indentline'
Plugin 'dkprice/vim-easygrep'
Plugin 'scrooloose/syntastic'
Plugin 'scrooloose/nerdtree'
Plugin 'jistr/vim-nerdtree-tabs'
Plugin 'terryma/vim-multiple-cursors'
Bundle 'taglist.vim'
call vundle#end() " 必须
filetype plugin indent on " 必须 加载vim自带和插件相应的语法和文件类型相关脚本
filetype plugin on
map :NERDTreeToggle
"autocmd vimenter * NERDTree
"autocmd VimEnter * NERDTree
"autocmd VimEnter * | wincmd w
""let NERDTreeMapOpenInTab=''
"let g:nerdtree_tabs_open_on_console_startup=1
"let g:NERDTreeWinSize=31

let g:bookmark_sign = '¶'
let g:bookmark_annotation_sign = '§'
let g:bookmark_auto_close = 1
let g:bookmark_highlight_lines = 1
let g:bookmark_center = 1
highlight link BookmarkLine SpellBad
highlight link BookmarkAnnotationLine SpellBad
highlight BookmarkSign ctermbg=NONE ctermfg=160
highlight BookmarkLine ctermbg=194 ctermfg=NONE
let g:bookmark_sign = '♥'
let g:bookmark_highlight_lines = 1
let g:bookmark_auto_save = 1
let MRU_File = '/tmp/mru.txt'
let MRU_Auto_Close = 1
let MRU_Max_Menu_Entries = 20
let MRU_Max_Entries = 10
let MRU_Max_Submenu_Entries = 15
map :!sz %
map :NERDTreeToggle
:map :q
nmap ;h :MRU
let MRU_Filename_Format={'formatter':'v:val', 'parser':'.*'}
let MRU_Use_Current_Window = 1
" 按;h 打开历史记录
nmap ;f :MRU
nmap ;v :FS
nnoremap w
nnoremap ;w
nnoremap w
syntax enable
set background=dark
:colorscheme hybrid
let g:syntastic_php_checkers = ['php']

iab xtime =strftime("%Y-%m-%d %H:%M:%S")
vmap ;c :s/^/\/\//:noh
vmap ;u :s/\/\///:noh
nmap ;s :s/\<=expand("")\>/
nmap ;g :vimgrep =expand("")
map \d a=strftime("%Y/%m/%d %A")
map \t a=strftime("%Y/%m/%d %H:%M:%S")
nnoremap f :CtrlPFunky
nnoremap fU :execute 'CtrlPFunky ' . expand('')
highlight Identifier guifg=red
cnoreabbrev W w
cnoreabbrev Q q
cnoreabbrev Wq wq
""cnoreabbrev q! qa!
:command WQ wq
func SetTitle()
if &filetype == "sh"
call setline(1,"#!/bin/bash")
endif
endfunc
"autocmd BufWritePost *.php :!cp %{,.bak}
autocmd FileType php nnoremap c I//
nnoremap t :Tags
nnoremap f :Files
nnoremap b :Buffers
nnoremap w :Windows
nnoremap l :BLines
nnoremap ? :History
nnoremap / :execute 'Ag ' . input('Ag/')
nnoremap . :AgIn

"set rtp+=/Users/yansy/python2.7/dist-packages/powerline/bindings/bash/powerline.sh
"set nocompatible
"set t_Co=256

"let g:minBufExplForceSyntaxEnable = 1
"python from powerline.vim import setup as powerline_setup
"python powerline_setup()
"python del powerline_setup

set laststatus=2
set guifont=Source\ Code\ Pro\ for\ Powerline:h12
set noshowmode

let g:multi_cursor_use_default_mapping = 0
" mapping
let g:multi_cursor_start_word_key = '' " 选中一个
let g:multi_cursor_select_all_word_key = '' " 全选匹配的字符
let g:multi_cursor_start_key = 'g'
let g:multi_cursor_select_all_key = 'g'
let g:multi_cursor_next_key = ''
let g:multi_cursor_prev_key = '' " 回到上一个
let g:multi_cursor_skip_key = '' " 跳过当前选中, 选中下一个
let g:multi_cursor_quit_key = '' " 退出
set autoindent
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
"let Tlist_Sort_Type ='name'
"let Tlist_Ctags_Cmd ='/usr/bin/ctags'
"map :TlistToggle
"let Tlist_Auto_Open=1
"let Tlist_Use_Right_Window = 1
"let Tlist_Show_One_File=1
"let Tlist_Exit_OnlyWindow=1
""let Tlist_File_Fold_Auto_Close=1
"let Tlist_Use_Right_Window=1
""au BufWritePost *.php !ctags -R
""au BufWritePre *.php !ctags -R
"let tlist_php_settings = 'php;f:My Functions'
"let Tlist_Sort_Type ='name'

au FileType php call PHPFuncList()
function PHPFuncList()
set dictionary-=~/.vim/php_funclist.txt dictionary+=~/.vim/php_funclist.txt
set complete-=k complete+=k
endfunction
nnoremap j jzz
nnoremap k kzz
set cmdheight=2 ""设置命令行的高度为2
set lines=40 columns=155 "设置窗口上下40行,左右能容下 155个字符"

"set cursorcolumn
"highlight CursorColumn cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
set cursorline
highlight CursorLine cterm=NONE ctermbg=darkgreen ctermfg=white guibg=NONE guifg=NONE
set laststatus=2 " 总是显示状态栏
highlight StatusLine cterm=bold ctermfg=yellow ctermbg=blue
MacBook-Air:Library yansy$

MacBook-Air:Library yansy$ cat ~/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# Note: PS1 and umask are already set in /etc/profile. You should not # need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ ' # umask 022
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto' # eval "`dircolors`" # alias ls='ls $LS_OPTIONS' # alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA' # Some more alias to avoid making mistakes:
# alias rm='rm -i' # alias cp='cp -i' # alias mv='mv -i'
#alias video='cd /mnt/sdaOrangePi/record/video/$(date +%Y%m%d)'
#alias shell='cd /mnt/sdaPi/pi/shell'
alias www='cd /Users/yansy/www'
alias home='cd /var/root'
alias sshvps='ssh yansiyu@18.31.07.21 -p11516'
alias sshpi='ssh pi@192.168.0.116'
myrm(){ D=/recycle/root/$(date +%Y%m%d%H%M%S); mkdir -p $D; mv "$@" $D && echo "moved to $D ok"; }
alias rm='myrm'
bind "set completion-ignore-case on"
PATH=$PATH:/var/root
export EDITOR="/usr/bin/vim"
alias psw='ps aux|grep "$@"'
alias ll='ls -lrht'
alias nt='netstat'
#alias sa='saidar -c'
PATH=$PATH:/Users/yansy
export HISTFILESIZE=1
export HISTTIMEFORMAT="%Y-%m-%d %H:%M:%S "
export HISTCONTROL=ignoredups
alias sshtest='ssh yansy@180.150.178.240 -p52222'
alias sshvm='ssh yansy@192.168.0.115'
http_proxy="https://192.168.2.139:808/"
https_proxy="https://192.168.2.139:808/"
ftp_proxy="ftp://192.168.2.139:808/"
socks_proxy="socks://192.168.2.139:808/"
alias jumpserver='ssh -i yansiyu_openssh yansiyu@117.50.5.115 -p52222'
alias pvenas='ssh root@www.pvenas.com -p 33333'
alias sshlocal='ssh root@192.168.2.143 -p 22'
alias sshndodo='ssh root@47.116.141.104'
#otBgoC7y934UO5AHf6hDtyc2f1W
alias sshonline='ssh root@47.116.73.25'
#Eh609@2#0$0
#负载均衡主47.116.73.25
#root fA1@dI1^tA2@
#负载均衡从106.14.162.25
#root iA1+bA1%bA3&
#测试服务器47.116.141.104
#root pI0!bJ5^aG5)
MacBook-Air:Library yansy$

    A+
发布日期:2022年10月30日  所属分类:未分类

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: