保存一份VIM配置

使用的插件  NERDTree A.vim Taglist NERDComment


set nocompatible
set nu
set backspace=indent,eol,start
set ts=2
set shiftwidth=2
set et
set ai
set autoread
set cmdheight=2
set showmatch
set hlsearch
set incsearch
set autoindent
set formatoptions=tcrqn
set smartindent
set smarttab
filetype on
filetype plugin on
filetype indent on
syntax on
set background=dark
colorscheme darkblue
setlocal noswapfile
set bufhidden=hide
set wildmenu
set ruler
set rulerformat=%20(%2*%<%f%=\ %m%r\ %3l\ %c\ %p%%%)
set laststatus=2
set statusline=%F%m%r%h%w\[POS=%l,%v][%p%%]\%{strftime(\"%d/%m/%y\ -\ %H:%M\")} 

" windows下面菜单的乱码问题
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
language message zh_CN.utf-8


if has("multi_byte")
  if &termencoding == ""
    let &termencoding = &encoding
  endif
  set encoding=utf-8
  setglobal fileencoding=utf-8
  set fileencodings=utf-8,latin1,ucs-bom
endif

" short cuts for c && c++
" Using A.vim to switch between header && iplementation file.
nmap <leader>h :A<kEnter>
nmap <leader>n :NERDTree<kEnter>

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值