Magicpang

Tracking the Road

保存一份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>

阅读更多
版权声明:本文为博主原创文章,未经博主允许不得转载。未授权转载按照千字千元收费。 https://blog.csdn.net/magicpang/article/details/52207547
个人分类: Usage of Vim
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭