vim config

  1. " ------------------------------------------------------------------------- 
  2. " My Vim Configuration  
  3. " ------------------------------------------------------------------------- 
  4. " -------------------------------------------------------------------------  
  5. " Common Settings 
  6. " -------------------------------------------------------------------------  
  7. set nocompatible                        " Use vim advance settings 
  8. set autoindent                          " Auto-indent on  
  9. set tabstop=4                           " Use 4 spaces for tabs 
  10. set shiftwidth=2                        " 2 spaces for autoindent  
  11. set expandtab                           " Use space instead of tabs 
  12. "set foldcolumn=4                       " Colums for fold display 
  13. "set incsearch                          " Incremental search 
  14. "set hlsearch                           " Highlight search hits 
  15. set showcmd                             " Show panding commands  
  16. set cmdheight=1                         " lines for command window 
  17. set laststatus=2                        " Always show status line  
  18. set backspace=indent,eol,start          Backspace over everyting 
  19. set history=50                          " Save at most 50 commands  
  20. "set ruler                              " show ruler  
  21. "set showmatch                          " Display matching paren  
  22. "set matchtime=2                        " Be breif when displaying the match  
  23. set nobackup                            " No backups 
  24. set visualbell                          " Use visual bell  
  25. "set mouse=nv                           " Mouse in normal and visual  
  26. "set viminfo='100,f1,rE:,:100,/100      " Vim info options  
  27. set lazyredraw                          " Don't redraw on macro execute 
  28. set noerrorbells                        " Don't make noise  
  29. set autoread                            " Re-read if modified 
  30. "set backupcopy=yes                     " Save resources 
  31. set diffopt=filler,iwhite               " Diff options  
  32. set nostartofline                       " Keep cursor column when moving 
  33. set number                              " Show number of line on left  
  34. set helplang=cn,en                      " Language of help 
  35. set enc=UTF-8 
  36. set fenc=UTF-8 
  37. set fencs=UTF-8,chinese 
  38. syntax on                               " Syntax Highlight on  
  39.   
  40.   
  41. "-------------------------------------------------------------------------- 
  42. " Options for Graphic version of VIM  
  43. "-------------------------------------------------------------------------- 
  44. set guioptions-=T           " No Toolbar  
  45. set guioptions-=L           " No left hand scrollbars 
  46. set guioptions-=r           " No right hand scrollbars  
  47. set guioptions-=m           " No menu bar 
  48. "--------------------------------------------------------------------------  
  49. " Auto commands 
  50. "--------------------------------------------------------------------------  
  51. filetype plugin indent on   " Enable file type indenting and plugins 
  52. set browsedir=buffer 
  53. set autochdir 
  54. "--------------------------------------------------------------------------  
  55. " Color scheme 
  56. "--------------------------------------------------------------------------  
  57. "set t_Co=256 
  58. "colorscheme murphy  
  59. colorscheme vibrantink              "simulate TextMate color scheme
  60. "highlight StatusLine gui=none 
  61. "highlight SpecialKey guibg=bg  
  62. "highlight Folded     gui=none 
  63. "highlight Boolean    gui=none  
  64.   
  65.   
  66. " ------------------------------------------------------------------------- 
  67. " Other  
  68. " ------------------------------------------------------------------------- 
  69. auto BufEnter * let &titlestring = expand("%:p") . " (" . &ft .":" . &fenc . ") "   
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值