Config VIM

$Id: vim.html,v 1.2 2004/12/16 12:18:00 george Exp $

"
" HOME DIR is set to C:/Vim
"
set autoindent

set autowrite

set shiftwidth=4

" tab???
set expandtab

set tabstop=4

set softtabstop=4

" line number
set number

" increased search
set incsearch

"highlight all the search patterns match
set hlsearch

"display the status line always
set laststatus=2

" *.swp and *~ files
set backupdir=C:/vim/backup
set directory=C:/vim/temp

"get rid of toolbar and menu
set guioptions-=T "get rid of toolbar
"

"
" behaved not like emacs
"
set showmatch

set fileformat=dos

set ignorecase

set smartcase

"
" ??taglist.vim
"
filetype on

let Tlist_Ctags_Cmd = 'C:/windows/ctags.exe'

nnoremap 
  
   
   
   
    
     :Tlist
    
    
     
     

nnoremap 
     
      
      
      
       
        :TlistSync
       
       
         nnoremap 
         
         
           :TlistUpdate 
          
            let winManagerWindowLayout = 'FileExplorer|TagList' let Tlist_Exit_OnlyWindow = 1 " " End of ??taglist.vim " "? >< ???> 
           
             < ??html?? "nnoremap 
             
             
               :%s/> 
               
                
                 
                 
                   "? 
                  
                    "nnoremap 
                    
                    
                      : 
                      
                      
                        dd 
                       
                         i let g:winManagerWindowLayout='FileExplorer,TagsExplorer|BufExplorer' map 
                         
                         
                           :FirstExplorerWindow 
                          
                            map 
                            
                            
                              :BottomExplorerWindow 
                             
                               map 
                               
                               
                                 :WMToggle 
                                
                                  "------------------------------------------------------------------------------- " c.vim File Header comment "------------------------------------------------------------------------------- let g:C_AuthorName = "george" let g:C_AuthorRef = "ga" let g:C_Email = "zlhg@hotmail.com" let g:C_Company = "" let g:C_Project = "" let g:C_CopyrightHolder = "George" let g:C_CExtension = "c" " C file extension; everything else is C++ let g:C_CCompiler = "gcc" " the C compiler let g:C_CplusCompiler = "g++" " the C++ compiler let g:C_CFlags = "-Wall -g -O0 -c" " compiler flags: compile, don't optimize let g:C_LFlags = "-Wall -g -O0" " compiler flags: link , don't optimize let g:C_Libs = "-lm" " libraries to use let g:C_Template_Directory = $HOME."/vimfiles/plugin/templates/" let g:C_Dictionary_File = $HOME."/vimfiles/wordlists/c-c++-keywords.list" let g:C_Dictionary_File = g:C_Dictionary_File.",".$HOME."/vimfiles/wordlists/k+r.list" let g:C_Dictionary_File = g:C_Dictionary_File.",".$HOME."/vimfiles/wordlists/stl_index.list" let g:C_Dictionary_File = g:C_Dictionary_File.",".$HOME."/vimfiles/wordlists/german.list" " ---------- Insert header into new C/C++-files ---------- if has("autocmd") autocmd BufNewFile *./(c/|cc/|cpp/|C/) call C_CommentTemplates('cheader') autocmd BufNewFile *./(h/|hpp/) call C_CommentTemplates('hheader') endif " has("autocmd") " " Favorite Colorshema " color midnight2 " " End of color midnight " "set enc=gb2312 " "set statusline=%<%f/ %h%m%r%=%-14.(%l,%c%V%)/ %P " set statusline=%<%f%h%m%r%=%b/ 0x%B/ %l,%c%V/ %P let JavaBrowser_Ctags_Cmd = 'C:/windows/ctags.exe' " " For python See tip 103 " nn 
                                 
                                   k:call search ("^". matchstr (getline (line (".")+ 1), '/(/s*/)') ."//S", 'b') 
                                  
                                    ^ nn 
                                   
                                     :call search ("^". matchstr (getline (line (".")), '/(/s*/)') ."//S") 
                                    
                                      ^ set tags=./tags,../tags,../../tags,../../../tags,d:/tomcat/webapps/worm/tags,D:/backup/Java/Jive/tags " " For comment, when use alt+x to comment html line " let g:EnhCommentifyUseAltKeys = 'yes' 
                                     
                                    
                                   
                                  
                                 
                                
                               
                              
                             
                            
                           
                          
                         
                        
                       
                      
                     
                    
                   
                  
                 
                
               
              
             
            
           
          
         
       
      
      
     
     
    
    
   
   
  
  

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值