Giter Site home page Giter Site logo

monvi's Introduction

MonVI

Usefull personal stuffs

  1. If you are cloning this repo, you could perform an HOME install. For this situation you should provide a --prefix=your/home/folder inside configure vim:

     $ ./configure --with-features=huge  --enable-rubyinterp \
     --enable-pythoninterp \
     --with-python-config-dir=/usr/lib/python2.7-config \
     --prefix=/your/home/folder
    
  2. After this run make and make install and include on your .bashrc the line an alias to vi and vim from your recently compiled vim:

     alias vi='~/bin/vim'
     alias vim='~/bin/vim'
    
  3. After this you should install Vundle just typing:

     $ git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
    
  4. And copying the .vimrc from MonVi repo to your HOME folder

  5. Open vi and :PluginInstall

Infos cloned from HERE Compiling Vim from source is actually not that difficult. Here's what you should do:

  1. First, install all the prerequisite libraries, including Mercurial. For a Debian-like Linux distribution like Ubuntu, that would be the following:

    apt-get install libncurses-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev \
    libx11-dev libxpm-dev libxt-dev python3-dev ruby-dev mercurial
    
  2. Remove vim if you have it already.

     sudo apt-get remove vim vim-runtime gvim
    

On Ubuntu 12.04.2 you probably have to remove these packages as well:

    sudo apt-get remove vim-tiny vim-common vim-gui-common
  1. Once everything is installed, getting the source is easy. If you're not using vim 7.3, make sure to set the VIMRUNTIMEDIR variable correctly below (for instance, with vim 7.4a, use /usr/share/vim/vim74a):

     cd ~
     hg clone https://code.google.com/p/vim/
     cd vim
     ./configure --with-features=huge \
                 --enable-rubyinterp \
                 --enable-pythoninterp \
                 --with-python-config-dir=/usr/lib/python2.7-config \
                 --enable-perlinterp \
                 --enable-gui=gtk2 --enable-cscope --prefix=/usr
     make VIMRUNTIMEDIR=/usr/share/vim/vim74
     sudo make install
    

You may also wish to add

    --enable-luainterp

if you wish to support plugins that require Lua.

If you want to be able to easily uninstall the package use checkinstall instead of sudo make install

    sudo apt-get install checkinstall
    cd vim
    sudo checkinstall

Set vim as your default editor with update-alternatives.

    sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1
    sudo update-alternatives --set editor /usr/bin/vim
    sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1
    sudo update-alternatives --set vi /usr/bin/vim
  1. Double check that you are in fact running the new Vim binary by looking at the output of vim --version.

If you don't get gvim working (on ubuntu 12.04.1 LTS), try changing --enable-gui=gtk2 to --enable-gui=gnome2

You may need to add --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu/ to the configure call.

These configure and make calls assume a Debian-like distro where Vim's runtime files directory is placed in /usr/share/vim/vim74/, which is not Vim's default. Same thing goes for --prefix=/usr in the configure call. Those values may need to be different with a Linux distro that is not based on Debian. In such a case, try to remove the --prefix variable in the configure call and the VIMRUNTIMEDIR in the make call (in other words, go with the defaults).

If you get stuck, here's some other useful information on building Vim.

monvi's People

Contributors

arnaldorusso avatar

Watchers

James Cloos avatar  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.