加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vimrc.vim 3.29 KB
一键复制 编辑 原始数据 按行查看 历史
toalexjin 提交于 2015-03-20 12:06 . Map to hide current window
" Load system vimrc.
if filereadable("/etc/vim/vimrc")
source /etc/vim/vimrc
elseif filereadable("/etc/vimrc")
source /etc/vimrc
endif
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
" set rtp+=~/.vim/bundle/Vundle.vim
set rtp+=~/git/vim-plugins/Vundle.vim
call vundle#begin("~/git/vim-plugins")
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'msanders/snipmate.vim'
Plugin 'majutsushi/tagbar'
Plugin 'fatih/vim-go'
Plugin 'gabrielelana/vim-markdown'
Plugin 'nsf/gocode',{'rtp':'vim/'}
Plugin 'bronson/vim-visual-star-search'
" 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/'}
" Avoid a name conflict with L9
" Plugin 'user/L9', {'name': 'newL9'}
" 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 - list configured plugins
" :PluginInstall(!) - install (update) plugins
" :PluginSearch(!) foo - search (or refresh cache first) for foo
" :PluginClean(!) - confirm (or auto-approve) removal of unused plugins
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
" Make window could be hidden even if file content is modified.
set hidden
" set tab and indent size
set tabstop=4 shiftwidth=4 softtabstop=4
" enable hlsearch
set hlsearch
" show tab and white space
set list
if has("gui_running") || $COLORTERM == "gnome-terminal"
set listchars=tab:▸\ ,trail:.
else
set listchars=tab:>\ ,trail:.
endif
" set gvim font
if has("unix") && has("gui_running")
set guifont=Monospace\ 14
endif
" Use whitespace instead of tab for java files
if has("autocmd")
autocmd FileType java setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
autocmd FileType groovy setlocal tabstop=4 shiftwidth=4 softtabstop=4 expandtab
endif
" Map Keys
map <F2> <ESC><C-w>w
map <F3> <ESC>:hide<CR>
map <F4> <ESC>:TagbarToggle<CR><C-w>w
map <F5> <ESC>:NERDTreeToggle<CR>
map <F6> <ESC>R
" NERDTree settings
let NERDTreeWinSize=60
" Save more history information
set history=200
" ctrlp settings
set wildignore+=*/tmp/*,*/target/*,*/_build/*
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'file': '\v\.(class|gz|htm|html|jar|jpeg|jpg|json|log|png|properties|rptdesign|so|swp|txt|vmdk|war|zip)$',
\ }
let g:ctrlp_match_window = 'max:20,results:100'
let g:ctrlp_by_filename = 1
let g:ctrlp_max_files=100000
let &termencoding=&encoding
set fileencodings=utf-8,gbk,ucs-bom,latin1
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化