安装 snippetsEmu 之后 输入状态下 按 TAB键 无法补全
quqiufeng
2010-11-15
我的配置是
" autoload _vimrc autocmd! bufwritepost _vimrc source % " disable VI's compatible mode set nocompatible " set encoding=utf-8 set fileencodings=ucs-bom,utf-8,gbk,default,latin1 " use chinese help set helplang=cn if has("gui_running") set guifont=Yahei_Mono:h12:cGB2312 colorscheme oceandeep endif set guioptions-=m set guioptions-=T " Enable syntax highlight syntax enable " Show line number set nu " show matching bracets set showmatch " Basic editing options set expandtab set shiftwidth=2 au FileType html,python,vim,javascript setl shiftwidth=2 au FileType html,python,vim,javascript setl tabstop=2 au FileType java,php setl shiftwidth=4 au FileType java,php setl tabstop=4 set smarttab set lbr set tw=0 "Auto indent set ai " Smart indet set si " C-style indeting set cindent "Wrap lines set wrap " Sets how many lines of history VIM har to remember set history=400 " Set to auto read when a file is changed from the outside set autoread " Have the mouse enabled all the time: set mouse=a " Do not redraw, when running macros.. lazyredraw set lz " set 7 lines to the curors - when moving vertical.. set so=7 " The commandbar is 2 high set cmdheight=2 " Change buffer - without saving set hid " Ignore case when searching " set ignorecase set incsearch " Set magic on set magic " No sound on errors. set noerrorbells set novisualbell set t_vb= " How many tenths of a second to blink set mat=4 " Highlight search things set hlsearch " Turn backup off set nobackup set nowb set noswapfile " smart backspace set backspace=start,indent,eol " switch buffers with Tab map <C-Tab> :bn<CR> map <S-Tab> :bp<CR> " NERDTree let NERDTreeBookmarksFile='d:\Vim\vimfiles\bookmarks.txt' map <C-t> :NERDTreeToggle <C-R>=""<CR> " taglist let Tlist_Auto_Highlight_Tag = 1 let Tlist_Auto_Open = 1 let Tlist_Auto_Update = 1 let Tlist_Close_On_Select = 0 let Tlist_Compact_Format = 0 let Tlist_Display_Prototype = 0 let Tlist_File_Fold_Auto_Close = 0 let Tlist_GainFocus_On_ToggleOpen = 1 let Tlist_Hightlight_Tag_On_BufEnter = 1 let Tlist_Inc_Winwidth = 0 let Tlist_Max_Submenu_Items = 1 let Tlist_Max_Tag_Length = 30 let Tlist_Process_File_Always = 0 let Tlist_Show_Menu = 0 let Tlist_Show_One_File = 0 let Tlist_Sort_Type = "order" let Tlist_Use_Horiz_Window = 0 let Tlist_Use_Right_Window = 1 let Tlist_WinWidth = 40 let tlist_php_settings = 'php;c:class;i:interfaces;d:constant;f:function' map <C-f> :TlistToggle<CR> " bufexplorer let g:bufExplorerDefaultHelp=1 let g:bufExplorerDetailedHelp=0 let g:bufExplorerSortBy='mru' nmap <C-X> :BufExplorer<CR> " php editing " remove CR at end of lines let PHP_removeCRwhenUnix = 1 " Set up automatic formatting set formatoptions+=tcqlro " Set maximum text width (for wrapping) set textwidth=110 " phpDocumentor for VIM imap <A-/> <ESC>:call PhpDocSingle()<CR>i nmap <A-/> :call PhpDocSingle()<CR> vmap <A-/> :call PhpDocRange()<CR> " set pdv let g:pdv_cfg_Type = "mixed" let g:pdv_cfg_Package = "" let g:pdv_cfg_Version = "$Id$" let g:pdv_cfg_Author = "dualface <quqiufeng@gmail.com>" let g:pdv_cfg_Copyright = "2010 - www.beauty-mood.com" let g:pdv_cfg_License = "New BSD {@link http://www.opensource.org/licenses/bsd-license.php}" let g:pdv_cfg_php4always = 0 let g:pdv_cfg_php4guess = 0 " NERD Commenter let NERDShutUp = 1 求解 |
|
quqiufeng
2010-11-16
奥 我知道了 配置是没问题的 我是在php文件里面测试的
D:\Vim\vimfiles\after\ftplugin 默认没有 php_snippets.vim 这个文件 要自己新建了之后 配置 然后就可以了 |
相关讨论
相关资源推荐
- Linux下vim配置IDE
- 将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete
- vim-addons插件的使用
- 一步步将vim改造成C/C++开发环境(IDE)
- vim的简单使用
- vim
- 将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)
- vim运用进阶
- vim配置
- 将Vim改造为强大的IDE—Vim集成Ctags/Taglist/Cscope/Winmanager/NERDTree/OmniCppComplete(有图有真相)(转)...