GithubHelp home page GithubHelp logo

vim-config's Introduction

KEYBOARD
a.vim               :A                                      switch between .cpp and .h
Align               :'a,'b Align=
Bundle              :BundleList                             list configured bundles
FencView            map <leader>a :FencAutoDetect<cr>
The-NERD-tree       :NERDTree
Tagbar              nmap \t :TagbarToggle<CR>     
                    map <leader>e                           edit vimrc file
                    set pastetoggle=<leader>a
                    nnoremap<silent> \n :NERDTreeToggle
DrawIt              <leader>di <leader>ds                   ascii art
ctags cscope        <leader>tu                              update ctags and cscope

删除submodule:
    1. 从 .gitmodule 文件里面删掉关于 bundle/Tagbar的配置信息
    2. git rm -cached bundle/Tagbar
    3. 现在可以重新添加了

下载vim配置文件
    cd ~
    git clone https://github.com/hyq5436/vim-config.git ~/.vim
    ln -s ~/.vim/vimrc ~/.vimrc
    #ln -s ~/.vim/gvimrc ~/.gvimrc
    cd ~/.vim
    git submodule init
    git submodule update

安装插件
    #git submodule add 插件 Git 仓库地址 bundle/插件名字
    git submodule add git://github.com/tpope/vim-markdown.git bundle/vim-markdown

更新所有的plugin
    git submodule foreach git pull origin master

升级某个plugin
    cd ~/.vim/bundle/fugitive
    git pull origin master

提交更改
    cd ~/.vim
    git push origin master

windows下的配置: 
    1. 将bundle文件夹拷贝到 Vim/vimfiles 目录下

vim-config's People

Contributors

hyq5436 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.