settings.vim

来自「vim的自动配置文件」· VIM 代码 · 共 88 行

VIM
88
字号
" Description: Omni completion script for cpp files" Maintainer:  Vissale NEANG" Last Change: 25 jun 2006function! omni#cpp#settings#Init()    " Global scope search on/off    "   0 = disabled    "   1 = enabled    if !exists('g:OmniCpp_GlobalScopeSearch')         let g:OmniCpp_GlobalScopeSearch = 1    endif    " Sets the namespace search method    "   0 = disabled    "   1 = search namespaces in the current file    "   2 = search namespaces in the current file and included files    if !exists('g:OmniCpp_NamespaceSearch')         let g:OmniCpp_NamespaceSearch = 1    endif    " Set the class scope completion mode    "   0 = auto    "   1 = show all members (static, public, protected and private)    if !exists('g:OmniCpp_DisplayMode')         let g:OmniCpp_DisplayMode = 0    endif    " Set if the scope is displayed in the abbr column of the popup    "   0 = no    "   1 = yes    if !exists('g:OmniCpp_ShowScopeInAbbr')         let g:OmniCpp_ShowScopeInAbbr = 0    endif    " Set if the function prototype is displayed in the abbr column of the popup    "   0 = no    "   1 = yes    if !exists('g:OmniCpp_ShowPrototypeInAbbr')         let g:OmniCpp_ShowPrototypeInAbbr = 0    endif        " Set if the access (+,#,-) is displayed    "   0 = no    "   1 = yes    if !exists('g:OmniCpp_ShowAccess')         let g:OmniCpp_ShowAccess = 1    endif    " Set the list of default namespaces    " eg: ['std']    if !exists('g:OmniCpp_DefaultNamespaces')         let g:OmniCpp_DefaultNamespaces = []    endif    " Set MayComplete to '.'    "   0 = disabled    "   1 = enabled    "   default = 1    if !exists('g:OmniCpp_MayCompleteDot')         let g:OmniCpp_MayCompleteDot = 1    endif    " Set MayComplete to '->'    "   0 = disabled    "   1 = enabled    "   default = 1    if !exists('g:OmniCpp_MayCompleteArrow')         let g:OmniCpp_MayCompleteArrow = 1    endif    " Set MayComplete to dot    "   0 = disabled    "   1 = enabled    "   default = 0    if !exists('g:OmniCpp_MayCompleteScope')         let g:OmniCpp_MayCompleteScope = 0    endif    " When completeopt does not contain longest option, this setting allow to not    " select the first item    "   0 = don't select first item    "   1 = select first item    "   default = 0    if !exists('g:OmniCpp_SelectFirstItem')         let g:OmniCpp_SelectFirstItem= 0    endifendfunc

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?