set nu
set autoindent
set shiftwidth=4
set softtabstop=4
set tabstop=4
compiler gcc
set sm
set cin
set fileencodings=utf8
set fileencodings=utf8,gb2312,gbk,big5
filetype plugin on
filetype indent on
set tabstop=4
nmap F :!sdcv -n =expand("")
set nocp
set hlsearch
set incsearch
set showcmd
let Tlist_Use_Right_Window=1
let Tlist_Compart_Format = 1
let Tlist_File_Fold_Auto_Close=1
nmap :Explore " 文件列表
nmap :TlistToggle "函数变量
map :call CompileRunGcc()
func! CompileRunGcc() "编译运行程序
exec "w"
exec "!gcc % -o %<"
exec "! ./%<"
endfunc
nmap :call Search_Word() "打开quickfix
nmap :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .
nnoremap :Grep "寻找grep
inoremap "全能补全
nnoremap :A
set updatetime=100
noremap :call ToggleSketch()
set modifiable
set write
set smartindent
set ambiwidth=double
syntax on
let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType=""
set nocp
"set mouse=a
set mouse=h
autocmd CursorMoved * if pumvisible() == 0|pclose|endif
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
set path+=/usr/include/gtk-2.0/*,/usr/include/gtk-2.0,/usr/include/glib-2.0/*,/usr/include/glib-2.0
set tags+=/usr/include/gtk-2.0/gtk/tags,/usr/include/gtk-2.0/tags,/usr/include/glib-2.0/tags,/usr/include/glib-2.0/glib/tags
set fo+=mB
set lbr
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
set nobackup
set noerrorbells
set formatoptions=tcrqn
set foldenable
set foldmethod=manual
nnoremap @=((foldclosed(line('.')) < 0) ? 'zc' :'zo')
set backspace=indent,eol,start
set shortmess=atI
ab #i #include"apue.h"
autocmd BufEnter * call DoWordComplete()
let g:WC_min_len = 3
let g:WC_accept_key = ""
nmap :Matrix
let g:winManagerWindowLayout = "BufExplorer,FileExplorer|TagList"
let g:winManagerWidth = 30
let g:defaultExplorer = 0
nmap :WMToggle
阅读(1189) | 评论(0) | 转发(0) |