vimrc

来源:互联网 发布:linux数据库备份软件 编辑:程序博客网 时间:2024/06/16 17:50
filetype off
execute pathogen#infect()
filetype plugin indent on


set nocompatible
"source $VIMRUNTIME/vimrc_example.vim
"source $VIMRUNTIME/mswin.vim
"behave mswin


set modelines=0
" disable menu 
set guioptions=
" syntax 
syntax on
" backup
set nobackup
set nowritebackup
" line number
set number
" TAB 
set expandtab
set tabstop=4
set softtabstop=4
set shiftwidth=4
" others 
set wrap
set scrolloff=4
set ruler
set showcmd
set showmode
set showmatch
set wildmenu
set wildmode=list:full
set novisualbell
set cursorline
set ttyfast
set backspace=indent,eol,start
set laststatus=2


" indent
set autoindent
" search
set incsearch 
set hlsearch
set ignorecase
set smartcase
set wrapscan
nnoremap / /\v
vnoremap / /\v
" substitute
set gdefault
" encode
set fileencodings=ucs-bom,utf-8,cp936,latin1
" movement
nnoremap j gj
nnoremap k gk
" learn movement
nnoremap <up> <nop>
nnoremap <down> <nop>
nnoremap <left> <nop>
nnoremap <right> <nop>
inoremap <up> <nop>
inoremap <down> <nop>
inoremap <left> <nop>
inoremap <right> <nop>


" settings for ms-windows
if has("win32")
    set guifont=Consolas:h11:cANSI
    " margine
    set colorcolumn=100
    set clipboard=unnamed
    set undofile
    set undodir=c:/Windows/Temp,.
    au GUIEnter * simalt ~x
    colo molokai
    "colo solarized
else
    set t_Co=256
    colo molokai
    "colo solarized
endif
0 0
原创粉丝点击