1 Star 0 Fork 0

vclyin / vimrcfile

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
.vimrc 6.49 KB
一键复制 编辑 原始数据 按行查看 历史
vclyin 提交于 2014-12-18 15:11 . linux vim
"==============================================================
"==============================================================
"
" Vundle插件管理和配置项
"
"==============================================================
"==============================================================
"
""开始使用Vundle的必须配置
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
"=== 使用Vundle来管理Vundle ===
" Bundle 'gmarik/vundle'
Bundle 'The-NERD-tree'
imap <F3> <Esc>:NERDTreeToggle<cr>
nmap <F3> :NERDTreeToggle<cr>
Bundle 'Emmet.vim'
"=== 主题 molokai ===
Bundle 'tomasr/molokai'
" Bundle 'altercation/vim-colors-solarized'
""设置主题
colorscheme molokai
" set background=dark
set background=light
set t_Co=256
"
Bundle 'Auto-Pairs'
Bundle 'matchit.zip'
Bundle 'Tabular'
" ============= Javascript dev ==============
Bundle 'jelera/vim-javascript-syntax'
Bundle 'vim-scripts/JavaScript-Indent'
"--------------
" IDE features
"--------------
Bundle 'scrooloose/nerdtree'
Bundle 'humiaozuzu/TabBar'
Bundle 'majutsushi/tagbar'
Bundle 'mileszs/ack.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-powerline'
"powerline{
"set guifont=PowerlineSymbols\ for\ Powerline
"set nocompatible
"set t_Co=256
"let g:Powerline_symbols = 'fancy'
"}
Bundle 'scrooloose/syntastic'
Bundle 'bronson/vim-trailing-whitespace'
"-------------
" Other Utils
"-------------
" Bundle 'humiaozuzu/fcitx-status'
Bundle 'nvie/vim-togglemouse'
"----------------------------------------
" Syntax/Indent for language enhancement
"----------------------------------------
"------- web backend ---------
Bundle '2072/PHP-Indenting-for-VIm'
"Bundle 'tpope/vim-rails'
Bundle 'lepture/vim-jinja'
"Bundle 'digitaltoad/vim-jade'
"------- web frontend ----------
Bundle 'othree/html5.vim'
" Bundle 'tpope/vim-haml'
Bundle 'pangloss/vim-javascript'
Bundle 'kchmck/vim-coffee-script'
Bundle 'nono/jquery.vim'
" Bundle 'groenewege/vim-less'
" Bundle 'wavded/vim-stylus'
" Bundle 'nono/vim-handlebars'
"------- markup language -------
Bundle 'tpope/vim-markdown'
" Bundle 'timcharper/textile.vim'
"------- Ruby --------
" Bundle 'tpope/vim-endwise'
"------- Go ----------
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
Bundle 'cespare/vim-golang'
" Bundle 'jnwhiteh/vim-golang'
Bundle 'Blackrush/vim-gocode'
" Bundle 'Valloric/YouCompleteMe'
"------- FPs ------
Bundle 'kien/rainbow_parentheses.vim'
" Bundle 'wlangstroth/vim-racket'
" Bundle 'vim-scripts/VimClojure'
" Bundle 'rosstimson/scala-vim-support'
"--------------
" Color Schemes
"--------------
Bundle 'rickharris/vim-blackboard'
Bundle 'altercation/vim-colors-solarized'
Bundle 'rickharris/vim-monokai'
Bundle 'tpope/vim-vividchalk'
Bundle 'Lokaltog/vim-distinguished'
Bundle 'chriskempson/vim-tomorrow-theme'
Bundle 'fisadev/fisa-vim-colorscheme'
"=============================================================
"=============================================================
"
" Vim基本配置
"
"=============================================================
"=============================================================
"关闭vi的一致性模式 避免以前版本的一些Bug和局限
set nocompatible
"配置backspace键工作方式
set backspace=indent,eol,start
let mapleader = ","
let g:mapleader = ","
"显示行号
set number
"设置在编辑过程中右下角显示光标的行列信息
set ruler
"当一行文字很长时取消换行
"set nowrap
"在状态栏显示正在输入的命令
set showcmd
"设置历史记录条数
set history=10000
"设置取消备份 禁止临时文件生成
set nobackup
set noswapfile
"突出现实当前行列、高亮当前行列
set cursorline
hi cursorline guibg=NONE gui=underline
" set cursorcolumn
"设置匹配模式 类似当输入一个左括号时会匹配相应的那个右括号
set showmatch
"设置C/C++方式自动对齐
set autoindent
"set cindent
"开启语法高亮功能
syntax enable
syntax on
"指定配色方案为256色
set t_Co=256
"设置搜索时忽略大小写
set ignorecase
"设置在Vim中可以使用鼠标 防止在Linux终端下无法拷贝
" set mouse=a
" 在所有模式下都允许使用鼠标,还可以是n,v,i,c等
set mouse=n
"设置Tab宽度
set tabstop=2
"设置自动对齐空格数
set shiftwidth=4
"设置按退格键时可以一次删除4个空格
set softtabstop=4
"设置按退格键时可以一次删除4个空格
set smarttab
"将Tab键自动转换成空格 真正需要Tab键时使用[Ctrl + V + Tab]
set expandtab
"设置编码方式
set encoding=utf-8
"自动判断编码时 依次尝试一下编码
set fileencodings=ucs-bom,utf-8,cp936,gb18030,big5,euc-jp,euc-kr,latin1
"检测文件类型
filetype on
"针对不同的文件采用不同的缩进方式
filetype indent on
"允许插件
filetype plugin on
"启动智能补全
filetype plugin indent on
" set omnifunc=syntaxcomplete#Complete
set completeopt=longest,menu
autocmd BufWritePre *.go :Fmt
set ruler
" imap <F3> <Esc>:NERDTreeToggle<cr>
" nmap <F3> :NERDTreeToggle<cr>
"=========================================================
" Key Mapings
" =======================================================
" Smart way to move between windows
map <C-j> <C-W>j
map <C-k> <C-W>k
map <C-h> <C-W>h
map <C-l> <C-W>l
" insert mode cursor move
imap <C-j> <Down>
imap <C-k> <Up>
imap <C-h> <Left>
imap <C-l> <Right>
"=============================================================
"
" vimscript repo
"
"=============================================================
Bundle 'taglist.vim'
Bundle 'c.vim'
Bundle 'vimwiki'
Bundle 'winmanager'
Bundle 'bufexplorer.zip'
Bundle 'matrix.vim--Yang'
Bundle 'FencView.vim'
Bundle 'Vimpress'
Bundle 'Conque-Shell'
Bundle 'snipMate'
Bundle 'Markdown'
" Bundle 'LaTeX-Suite-aka-Vim-LaTeX'
" Bundle 'minibufexpl.vim'
" let g:miniBufExplMapWindowNavVim = 1
" let g:miniBufExplMapWindowNavArrows = 1
" let g:miniBufExplMapCTabSwitchBufs = 1
" let g:miniBufExplModSelTarget = 1
" Switch CWD to the directory of the open buffer
map <leader>cd :cd %:p:h<cr>:pwd<cr>
" Reload vimrc
map <silent> <F5> :so %<cr>
" Brief help
" :BundleList - list configured bundles
" :BundleInstall(!) - install(update) bundles
" :BundleSearch(!) foo - search(or refresh cache first) for foo
" :BundleClean(!) - confirm(or auto-approve) removal of unused bundles
1
https://gitee.com/vclyin/vimrcfile.git
git@gitee.com:vclyin/vimrcfile.git
vclyin
vimrcfile
vimrcfile
master

搜索帮助