vim7.4在Win8下的安装及简单配置

软件环境

  1. vim74
  2. git
  3. vim中文帮助

vundle安装——插件管理软件

  1. cd vim所在路径/vimfiles/bundle
  2. git clone https://github.com/gmarik/vundle.git
  3. 修改vimrc文件,默认在vim所在路径/_vimrc
  4. 修改完毕后运行:BundleInstall,检查是否安装完毕
      set nocompatible              " be iMproved
filetype off " required! set rtp+=~/.vim/bundle/vundle/
call vundle#rc() " let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
filetype plugin indent on " required!

安装主题

 Bundle 'altercation/vim-colors-solarized'

 """solarized"""
syntax enable
set background=dark
colorscheme solarized

vim字体设置

 set guifont=Yahei\ Mono:h14

gvim乱码修正

" ===solve encode===
if has("multi_byte")
if &termencoding == ""
let &termencoding = &encoding
endif
set encoding=utf-8
if $LANG == "zh_CN"
if &encoding == "utf-8"
language message zh_CN.UTF-8
elseif &encoding == "cp936"
language message zh_CN.cp936
endif
endif
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,chinese,euc-jp,euc-kr,latin1
set fileencoding=chinese
endif
" for menu and right-mouse menu
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim
" for console
language message zh_CN.utf-8

Ctrl + V用于模式切换

$vim/mswin.vim
" CTRL-V and SHIFT-Insert are Paste
" map "+gP "注释掉该行即可

缩进由tab换成空格,以及自动缩进的时候显示

" ===set indent===
set expandtab " use space instead of tab.
set tabstop=4 " space num is 4
set shiftwidth=4 " auto-indent
set list " show tab
set listchars=tab:>-,trail:- " show tab and space as >- and -
set softtabstop=4
上一篇:Spark MLBase分布式机器学习系统入门:以MLlib实现Kmeans聚类算法


下一篇:UI Recorder 功能详解