#vim# my vimrc

浏览: 1236

set nocompatible              " be iMproved, required

filetype off                  " required

" set the runtime path to include Vundle and initialize

set rtp+=~/.vim/bundle/Vundle.vim

call vundle#begin()

" alternatively, pass a path where Vundle should install plugins

"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required

Plugin 'VundleVim/Vundle.vim'

" The following are examples of different formats supported.

" Keep Plugin commands between vundle#begin/end.

" plugin on GitHub repo

Plugin 'tpope/vim-fugitive'

" plugin from http://vim-scripts.org/vim/scripts.html

"Plugin 'L9'

" Git plugin not hosted on GitHub

Plugin 'git://git.wincent.com/command-t.git'

" git repos on your local machine (i.e. when working on your own plugin)

Plugin 'file:///home/gmarik/path/to/plugin'

" The sparkup vim script is in a subdirectory of this repo called vim.

" Pass the path to set the runtimepath properly.

Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}

" Install L9 and avoid a Naming conflict if you've already installed a

" different version somewhere else.

Plugin 'ascenator/L9', {'name': 'newL9'}

Plugin 'delimitMate.vim'

" All of your Plugins must be added before the following line

call vundle#end()            " required

filetype plugin indent on    " required

" To ignore plugin indent changes, instead use:

"filetype plugin on

"

" Brief help

" :PluginList       - lists configured plugins

" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate

" :PluginSearch foo - searches for foo; append `!` to refresh local cache

" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal

"

" see :h vundle for more details or wiki for FAQ

" Put your non-Plugin stuff after this line

syntax on                       " 关键字上色

syntax enable                   " 语法高亮

set nu                          " 显示行号

"set paste

set nocp                        " 不兼容vi

set hidden                      " 允许不保存切换buffer

set splitright                  " 新分割窗口在右边

set splitbelow                  " 新分割窗口在下边

set autoread                    " 文件在Vim之外修改过,自动重新读入

set timeoutlen=350              " 等待时间,如<leader>键后的输入

set helpheight=999              " 查看帮助文档全屏

set scrolljump=3                " 当光标离开屏幕滑动行数

set scrolloff=1                 " 保持在光标上下最少行数

set showmatch                   " 短暂回显匹配括号

set hlsearch                    " 检索时高亮显示匹配项

set incsearch                   " 边输入边搜索

set ignorecase                  " 搜索忽略大小写

set smartcase                   " 智能大小写搜索

set wildmenu                    " 命令模式下补全以菜单形式显示

set wildmode=list:longest,full  " 命令模式补全模式

set foldenable                  " 启动折叠

set foldmethod=marker           " 设置折叠模式

set encoding=utf-8              " 编码,使汉语正常显示

set termencoding=utf-8

set fileencodings=utf-8,gb2312,gbk,gb18030

set ts=4

set et                          " 令tab出来的四个位置,真的由四个空格填充

set shiftwidth=4                " 自动缩进空格数

set softtabstop=4               " 退格删除缩进

set backspace=indent,start      " 退格可删除缩进和原有字符

set autoindent                  " 与前一行同样等级缩进

set textwidth=79

colorscheme molokai

set t_Co=256 

let g:molokai_original = 1

inoremap jk <ESC>

推荐 0
本文由 Yuchi608 创作,采用 知识共享署名-相同方式共享 3.0 中国大陆许可协议 进行许可。
转载、引用前需联系作者,并署名作者且注明文章出处。
本站文章版权归原作者及原出处所有 。内容为作者个人观点, 并不代表本站赞同其观点和对其真实性负责。本站是一个个人学习交流的平台,并不用于任何商业目的,如果有任何问题,请及时联系我们,我们将根据著作权人的要求,立即更正或者删除有关内容。本站拥有对此声明的最终解释权。

0 个评论

要回复文章请先登录注册