vi

来源:互联网 发布:cydia添加软件源 编辑:程序博客网 时间:2024/06/12 01:22
.vimrc
=======================
:set expandtab
:syntax on
:set nohlsearch
:autocmd FileType c,cc,cpp,php,inc,java,cs set
  / smarttab
  / expandtab
  / shiftwidth=4
  / tabstop=4
:autocmd FileType javascript set
  / cindent
  / smarttab
  / shiftwidth=2
  / tabstop=2
:autocmd FileType xslt,xml set
  / smarttab
  / shiftwidth=2
  / tabstop=2
:autocmd FileType html,htm,jsp set
  / smarttab
  / tabstop=2
  / shiftwidth=2
:autocmd FileType perl set
  / smarttab
  / noexpandtab
  / shiftwidth=4
  / tabstop=4
set shiftwidth=2
set tabstop=2
set background=dark

command -nargs=+ Attr .!addattr <args>

=======================
 :! open inner shell

:s/>.*$/ }/
:s/</{ $Prog///

q "name" do q
---
@ "name"

:sp
ctrl + w   - | = | +

can not see the words you type: reset

:%s/</(Ctrl+v, Enter)</g
Shift + j

.vim/filetype.vim
=======================
augroup filetypedetect
au BufNewFile,BufRead *.tt     setf html
augroup END
=======================