root@testdeMacBook-Air:/Users/test# cat .vimrc
" 总是显示状态行
"https://blog.csdn.net/xiaokangboy/article/details/79672015
inoremap ' ''<ESC>i
inoremap " ""<ESC>i
inoremap ( ()<ESC>i
inoremap [ []<ESC>i
inoremap { {<CR>}<ESC>O
set cmdheight=2 设置命令行的高度为2
set lines=40 columns=155 "设置窗口上下40行,左右能容下 155个字符
"https://blog.csdn.net/xiaojun111111/article/details/50814205
set laststatus=2
set number
set hlsearch
set ignorecase
colorscheme desert
syntax on
syntax enable
"let g:AutoOpenWinManager = 1
filetype plugin on
filetype plugin indent on
filetype on
let snippets_dir="~/.vim/snippets"
"let g:winManagerWindowLayout='NERDTree|TagList,BufExplorer'
let g:winManagerWindowLayout='NERDTree'
"autocmd BufRead * 25vsp ./
nmap <F2> :NERDTree <CR>
autocmd vimenter * NERDTree
wincmd w
autocmd VimEnter * wincmd w
"map <F2> :NERDTreeToggle<CR>
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") &&b:NERDTreeType == "primary") | q | endif
set mouse=a
"set cursorcolumn
"highlight CursorColumn cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
set cursorline
highlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Auto_Open = 1
let Tlist_Use_Right_Window =1
inoremap jj <ESC>
set tabstop=2
:map <F3> i{e<Esc>a}<Esc>
:map <F6> :!svn commit -m %<CR><Esc>
:map <F1> iecho "<pre>";print_r($array);echo "</pre>";<CR><Esc>
:map <F5> a<C-R>=strftime("%c")<CR><Esc>
:map <F2> i<CR><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><CR><Esc>
:map <F4> i<CR>error_log(var_export($array,1),3,'/var/www/svnhejian/log.txt')."\r\n\r\n";<CR><Esc>
map <space> /
map <c-space> ?
map <S> shift
"set autoindent
nnoremap j jzz
nnoremap k kzz
abbr lunix linux
iabbr lunix linux
"使用vim里的<leader>
let mapleader=","
"按,ev打开配置文件
nmap <silent> <leader>ev :e $MYVIMRC<CR>
"按,sv重载配置文件
nmap <silent> <leader>sv :so $MYVIMRC<CR>
"按,m取消高亮搜索结果
nmap <silent> <leader>m :nohlsearch<CR>
"按,w保存文件
nmap <leader>w :w<CR>
"按,e在新tab打开文件
nmap <leader>e :tabe<Space>
"按,r在当前tab打开文件
nmap <leader>r :e<Space>
let MRU_File='/Users/test/.vim/mru_files.txt'
"记录的条数
let MRU_Max_Entries=10
""分割窗口的大小
let MRU_Window_Height=10
let MRU_Auto_Close=0
nmap <F5> :MRU <CR>
root@testdeMacBook-Air:~# pwd
/var/root
root@testdeMacBook-Air:~# cat .vimrc
set number
set hlsearch
set ignorecase
colorscheme desert
syntax on
syntax enable
"let g:AutoOpenWinManager = 1
filetype plugin on
filetype plugin indent on
filetype on
let snippets_dir="/Users/test/.vim/snippets"
"let g:winManagerWindowLayout='NERDTree|TagList,BufExplorer'
let g:winManagerWindowLayout='NERDTree'
"autocmd BufRead * 25vsp ./
"nmap <F2> :NERDTree <CR>
"autocmd vimenter * NERDTree
"map <F2> :NERDTreeToggle<CR>
"autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") &&b:NERDTreeType == "primary") | q | endif
set mouse=a
"set paste
"set cursorcolumn
"highlight CursorColumn cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
set cursorline
highlight CursorLine cterm=NONE ctermbg=black ctermfg=green guibg=NONE guifg=NONE
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Auto_Open = 1
let Tlist_Use_Right_Window =1
inoremap jj <ESC>
"set tabstop=4
:map <F3> i{e<Esc>a}<Esc>
:map <F6> :!svn commit -m %<CR><Esc>
:map <F1> iecho "<pre>";print_r($array);echo "</pre>";<CR><Esc>
:map <F5> a<C-R>=strftime("%c")<CR><Esc>
:map <F2> i<CR><meta http-equiv="content-type" content="text/html; charset=UTF-8" /><CR><Esc>
:map <F4> i<CR>error_log(var_export($array,1),3,'/var/www/svnhejian/log.txt')."\r\n\r\n";<CR><Esc>
map <space> /
map <c-space> ?
map <S> shift
"set autoindent
nnoremap j jzz
nnoremap k kzz
abbr lunix linux
iabbr lunix linux
"使用vim里的<leader>
let mapleader=","
"按,ev打开配置文件
nmap <silent> <leader>ev :e $MYVIMRC<CR>
"按,sv重载配置文件
nmap <silent> <leader>sv :so $MYVIMRC<CR>
"按,m取消高亮搜索结果
nmap <silent> <leader>m :nohlsearch<CR>
"按,w保存文件
nmap <leader>w :w<CR>
"按,e在新tab打开文件
nmap <leader>e :tabe<Space>
"按,r在当前tab打开文件
nmap <leader>r :e<Space>
"按,p用python执行当前文件
"
autocmd VimEnter * NERDTree
wincmd w
autocmd VimEnter * wincmd w
let Tlist_Ctags_Cmd = '/usr/local/bin/ctags'
map <F10>:set paste<CR>
map <F11>:set nopaste<CR>
autocmd FileType python set tabstop=4 | set expandtab | set autoindent
vmap "+y :w !pbcopy<CR><CR>
nmap "+p :r !pbpaste<CR><CR>