• vundle安装 给vim插上翅膀


     (这些文章都是从我的个人主页上粘贴过来的,大家也可以访问我的主页 www.iwangzheng.com)

    vundle安装方法如下
    
    首先执行以下命令
    $ git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle
    
    先在终端下执行 vim ~/.vimrc
    如果存在.vimrc则打开,不存在.vimrc则创建一个.vimrc并打开。把下面的内容复制到 .vimrc中
    filetype on
    set langmenu=none
    set fileencodings=utf-8
    set fileencoding=utf-8
    set encoding=utf8
    
    set expandtab
    set shiftwidth=2
    set softtabstop=2
    set tabstop=2
    set number
    set autoindent
    set hlsearch
    set incsearch
    set encoding=utf-8
    " highlight Normal ctermfg=white ctermbg=cyan
    set nowrap
    syntax enable
    
    let g:proj_window_width=5
    set laststatus=2
    
    map <C-T> :FufFile<CR>
    map <C-E> :MRU<CR>
    map <C-S-M> :Rmodel<CR>
    map <C-S-C> :Rcontroller<CR>
    map <C-S-U> :Runit<CR>
    map <C-S-L> :Rfunctional<CR>
    map <C-H> :Rhelper<CR>
    map <C-V> :Rview<CR>
    map <C-J> :ZoomWin<CR>
    
    " Strip trailing whitespace
    function! <SID>StripTrailingWhitespaces()
        " Preparation: save last search, and cursor position.
        let _s=@/
        let l = line(".")
        let c = col(".")
        " Do the business:
        %s/s+$//e
        " Clean up: restore previous search history, and cursor position
        let @/=_s
        call cursor(l, c)
    endfunction
    autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
    
    " match Todo /s+$/
    filetype plugin on
    let mapleader = ","
    
    " THE VIM OUTLINER (TVO)
    " defaults:
    let otl_install_menu=1
    let no_otl_maps=0
    let no_otl_insert_maps=0
    
    " overrides:
    let otl_bold_headers=0
    let otl_use_thlnk=0
    
    " au BufWinLeave *.otl mkview
    " au BufWinEnter *.otl silent loadview
    let maplocalleader = ","
    
    ""Only do this part when compiled with support for autocommands.
    "if has("autocmd")
    "  autocmd Filetype java setlocal omnifunc=javacomplete#Complete
    "endif
    
    set nocompatible               " be iMproved
    filetype off                   " required!
    
    " ============== Vundle part =================
    set rtp+=~/.vim/bundle/vundle/
    call vundle#rc()
    
    " let Vundle manage Vundle
    " required!
    Bundle 'gmarik/vundle'
    
    " My Bundles here:
    "
    " original repos on github
    Bundle 'tpope/vim-fugitive'
    Bundle 'Lokaltog/vim-easymotion'
    "Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
    Bundle 'tpope/vim-rails.git'
    Bundle 'tsaleh/vim-matchit.git'
    Bundle 'ecomba/vim-ruby-refactoring.git'
    
    " vim-scripts repos
    Bundle 'L9'
    Bundle 'FuzzyFinder'
    Bundle 'kchmck/vim-coffee-script.git'
    
    Bundle 'git://git.wincent.com/command-t.git'
    "Bundle 'snipMate'
    "Bundle 'snipmate-snippets'
    Bundle 'Jasmine-snippets-for-snipMate'
    Bundle 'YankRing.vim'
    Bundle 'vividchalk.vim'
    Bundle 'The-NERD-Commenter'
    Bundle 'The-NERD-tree'
    
    colorscheme vividchalk
    set background=light
    set background=dark
    Bundle 'mru.vim'
    Bundle 'greplace.vim'
    
    filetype plugin indent on     " required!
    "
    " 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
    "
    " see :h vundle for more details or wiki for FAQ
    " NOTE: comments after Bundle command are not allowed..
    
    map <S-F> <Leader><Leader>f
    map <Leader>a :YRShow<CR>
    map <Leader>t :NERDTree<CR>
    map <Leader>q :q<CR>
    map <Leader>f :Rfixture<CR>
    map <Leader>rj :Rjavascript<CR>
    
    在终端输入 vim,  进入后输入 :BundleInstall 
    
    安装完毕后  终端输入vim,按下 ctrl t,光标就自动跳转到上方,输入 **/ 就可以检索所有的文件了
  • 相关阅读:
    24、面向对象(内置方法)
    23、面向对象(包装)
    22、面向对象(反射)
    21、面向对象(封装)
    20、面向对象(多态)
    19、面向对象(继承)
    18、面向对象(静态属性、类方法、静态方法)
    LeetCode 3. Longest Substring Without Repeating Characters
    LeetCode 2.Add Two Numbers
    LeetCode 1. Two Sum
  • 原文地址:https://www.cnblogs.com/iwangzheng/p/3577980.html
Copyright © 2020-2023  润新知