Skip to content

Instantly share code, notes, and snippets.

@j-jith
Last active November 6, 2023 17:30
Show Gist options
  • Select an option

  • Save j-jith/f25fbcb826dff37a28bd190b584afd04 to your computer and use it in GitHub Desktop.

Select an option

Save j-jith/f25fbcb826dff37a28bd190b584afd04 to your computer and use it in GitHub Desktop.

Revisions

  1. j-jith revised this gist Feb 10, 2017. 1 changed file with 4 additions and 0 deletions.
    4 changes: 4 additions & 0 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -57,6 +57,10 @@ Compile

    `$ make`

    Run tests

    `$ make test`

    Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)

    `$ make install`
  2. j-jith revised this gist Feb 10, 2017. 1 changed file with 16 additions and 1 deletion.
    17 changes: 16 additions & 1 deletion howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -19,13 +19,28 @@ Path to install vim (optional. omit --prefix option in next step if not set)
    `export PREFIX='/path/to/vim/install'`

    Configure with required options (`$ configure --help` for other config. options)

    - For python 2.x
    ~~~
    $ ./configure --with-features=huge \
    --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-perlinterp \
    --enable-luainterp \
    --enable-cscope \
    --enable-gui=auto \
    --enable-gtk2-check \
    --with-x \
    --with-compiledby="j.jith" \
    --prefix=$PREFIX
    ~~~
    - For python 3.x

    ~~~
    $ ./configure --with-features=huge \
    --enable-multibyte \
    --enable-rubyinterp \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
    --enable-perlinterp \
  3. j-jith revised this gist Feb 10, 2017. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -49,12 +49,12 @@ Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)
    Make default editor/vim/vi/gvim

    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
    $ sudo update-alternatives --set editor $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vim vim $PREFIX/bin/vim 1
    $ sudo update-alternatives --set vim $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vi vi $PREFIX/bin/vim 1
    $ sudo update-alternatives --set vi $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/gvim gvim $PREFIX/bin/gvim 1
    $ sudo update-alternatives --set gvim $PREFIX/bin/gvim
    $ sudo sh -c "update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1;
    update-alternatives --set editor $PREFIX/bin/vim;
    update-alternatives --install /usr/bin/vim vim $PREFIX/bin/vim 1;
    update-alternatives --set vim $PREFIX/bin/vim;
    update-alternatives --install /usr/bin/vi vi $PREFIX/bin/vim 1;
    update-alternatives --set vi $PREFIX/bin/vim;
    update-alternatives --install /usr/bin/gvim gvim $PREFIX/bin/gvim 1;
    update-alternatives --set gvim $PREFIX/bin/gvim"
    ~~~
  4. j-jith revised this gist Feb 10, 2017. 1 changed file with 15 additions and 11 deletions.
    26 changes: 15 additions & 11 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -21,17 +21,21 @@ Path to install vim (optional. omit --prefix option in next step if not set)
    Configure with required options (`$ configure --help` for other config. options)

    ~~~
    $ ./configure --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-perlinterp \
    --enable-luainterp \
    --enable-cscope \
    --enable-gui=auto \
    --enable-gtk2-check \
    --with-x \
    --prefix=$PREFIX
    $ ./configure --with-features=huge \
    --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-python3interp \
    --with-python3-config-dir=/usr/lib/python3.5/config-3.5m-x86_64-linux-gnu \
    --enable-perlinterp \
    --enable-luainterp \
    --enable-cscope \
    --enable-gui=auto \
    --enable-gtk2-check \
    --with-x \
    --with-compiledby="j.jith" \
    --prefix=$PREFIX
    ~~~

    Compile
  5. j-jith revised this gist Sep 17, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -42,7 +42,7 @@ Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)

    `$ make install`

    Make default editor/vim/vi/gvim (for ubuntu)
    Make default editor/vim/vi/gvim

    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
  6. j-jith revised this gist Sep 17, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    Install build dependencies

    `$ sudo apt build-dep vim`
    `$ sudo apt-get build-dep vim`

    Clone git repo

  7. j-jith revised this gist Sep 17, 2016. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -47,10 +47,10 @@ Make default editor/vim/vi/gvim (for ubuntu)
    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
    $ sudo update-alternatives --set editor $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vim vim /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vim /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vi vi /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vi /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/gvim gvim /$PREFIX/bin/gvim 1
    $ sudo update-alternatives --set gvim /$PREFIX/bin/gvim
    $ sudo update-alternatives --install /usr/bin/vim vim $PREFIX/bin/vim 1
    $ sudo update-alternatives --set vim $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vi vi $PREFIX/bin/vim 1
    $ sudo update-alternatives --set vi $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/gvim gvim $PREFIX/bin/gvim 1
    $ sudo update-alternatives --set gvim $PREFIX/bin/gvim
    ~~~
  8. j-jith revised this gist Sep 17, 2016. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,24 @@
    1. Install build dependencies
    Install build dependencies

    `$ sudo apt build-dep vim`

    2. Clone git repo
    Clone git repo

    `$ git clone https://github.com/vim/vim.git`

    3. Change to src directory
    Change to src directory

    `$ cd vim/src`

    4. Remove files from previous compilation (skip if compiling for the first time)
    Remove files from previous compilation (skip if compiling for the first time)

    `$ sudo make distclean`

    5. Path to install vim (optional. omit --prefix option in next step if not set)
    Path to install vim (optional. omit --prefix option in next step if not set)

    `export PREFIX='/path/to/vim/install'`

    6. Configure with required options (`$ configure --help` for other config. options)
    Configure with required options (`$ configure --help` for other config. options)

    ~~~
    $ ./configure --enable-multibyte \
    @@ -34,15 +34,15 @@ $ ./configure --enable-multibyte \
    --prefix=$PREFIX
    ~~~

    7. Compile
    Compile

    `$ make`

    8. Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)
    Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)

    `$ make install`

    9. Make default editor/vim/vi/gvim (for ubuntu)
    Make default editor/vim/vi/gvim (for ubuntu)

    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
  9. j-jith revised this gist Sep 17, 2016. 1 changed file with 9 additions and 9 deletions.
    18 changes: 9 additions & 9 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -1,24 +1,24 @@
    Install build dependencies
    1. Install build dependencies

    `$ sudo apt build-dep vim`

    Clone git repo
    2. Clone git repo

    `$ git clone https://github.com/vim/vim.git`

    Change to src directory
    3. Change to src directory

    `$ cd vim/src`

    Remove files from previous compilation (skip if compiling for the first time)
    4. Remove files from previous compilation (skip if compiling for the first time)

    `$ sudo make distclean`

    Path to install vim (optional. omit --prefix option in next step if not set)
    5. Path to install vim (optional. omit --prefix option in next step if not set)

    `export PREFIX='/path/to/vim/install'`

    Configure with required options
    6. Configure with required options (`$ configure --help` for other config. options)

    ~~~
    $ ./configure --enable-multibyte \
    @@ -34,15 +34,15 @@ $ ./configure --enable-multibyte \
    --prefix=$PREFIX
    ~~~

    Compile
    7. Compile

    `$ make`

    Install
    8. Install (may need to use `sudo` if you don't have write permission in `$PREFIX`)

    `$ make install`

    Make default editor/vim/vi/gvim (for ubuntu)
    9. Make default editor/vim/vi/gvim (for ubuntu)

    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
  10. j-jith revised this gist Sep 17, 2016. 1 changed file with 11 additions and 2 deletions.
    13 changes: 11 additions & 2 deletions howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -1,19 +1,25 @@
    Install build dependencies

    `$ sudo apt build-dep vim`

    Clone git repo

    `$ git clone https://github.com/vim/vim.git`

    Change to src directory

    `$ cd vim/src`

    Remove files from previous compilation
    Remove files from previous compilation (skip if compiling for the first time)

    `$ sudo make distclean`

    Path to install vim (optional. omit --prefix option in next step if not set)

    `export PREFIX='/path/to/vim/install'`

    Configure with required options

    ~~~
    $ ./configure --enable-multibyte \
    --enable-rubyinterp \
    @@ -29,12 +35,15 @@ $ ./configure --enable-multibyte \
    ~~~

    Compile

    `$ make`

    Install

    `$ make install`

    Make default editor/vim/vi/gvim
    Make default editor/vim/vi/gvim (for ubuntu)

    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
    $ sudo update-alternatives --set editor $PREFIX/bin/vim
  11. j-jith renamed this gist Sep 17, 2016. 1 changed file with 21 additions and 16 deletions.
    37 changes: 21 additions & 16 deletions howto-compile-vim.txt → howto-compile-vim.md
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,20 @@
    > Install build dependencies
    $ sudo apt build-dep vim
    Install build dependencies
    `$ sudo apt build-dep vim`

    > Clone git repo
    $ git clone https://github.com/vim/vim.git
    Clone git repo
    `$ git clone https://github.com/vim/vim.git`

    > Change to src directory
    $ cd vim/src
    Change to src directory
    `$ cd vim/src`

    > Remove files from previous compilation
    $ sudo make distclean
    Remove files from previous compilation
    `$ sudo make distclean`

    > export PREFIX='/path/to/vim/install'
    Path to install vim (optional. omit --prefix option in next step if not set)
    `export PREFIX='/path/to/vim/install'`

    > Configure with required options
    Configure with required options
    ~~~
    $ ./configure --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    @@ -24,19 +26,22 @@ $ ./configure --enable-multibyte \
    --enable-gtk2-check \
    --with-x \
    --prefix=$PREFIX
    ~~~

    > Compile
    $ make
    Compile
    `$ make`

    > Install
    $ make install
    Install
    `$ make install`

    > Make default editor/vim/vi/gvim
    Make default editor/vim/vi/gvim
    ~~~
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
    $ sudo update-alternatives --set editor $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vim vim /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vim /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vi vi /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vi /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/gvim gvim /$PREFIX/bin/gvim 1
    $ sudo update-alternatives --set gvim /$PREFIX/bin/gvim
    $ sudo update-alternatives --set gvim /$PREFIX/bin/gvim
    ~~~
  12. j-jith revised this gist Sep 17, 2016. 1 changed file with 20 additions and 1 deletion.
    21 changes: 20 additions & 1 deletion howto-compile-vim.txt
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,18 @@
    > Install build dependencies
    $ sudo apt build-dep vim

    > Clone git repo
    $ git clone https://github.com/vim/vim.git

    > Change to src directory
    $ cd vim/src

    > Remove files from previous compilation
    $ sudo make distclean

    > export PREFIX='/path/to/vim/install'

    > Configure with required options
    $ ./configure --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    @@ -16,8 +23,20 @@ $ ./configure --enable-multibyte \
    --enable-gui=auto \
    --enable-gtk2-check \
    --with-x \
    --prefix=/path/to/install/dir
    --prefix=$PREFIX

    > Compile
    $ make

    > Install
    $ make install

    > Make default editor/vim/vi/gvim
    $ sudo update-alternatives --install /usr/bin/editor editor $PREFIX/bin/vim 1
    $ sudo update-alternatives --set editor $PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vim vim /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vim /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/vi vi /$PREFIX/bin/vim 1
    $ sudo update-alternatives --set vi /$PREFIX/bin/vim
    $ sudo update-alternatives --install /usr/bin/gvim gvim /$PREFIX/bin/gvim 1
    $ sudo update-alternatives --set gvim /$PREFIX/bin/gvim
  13. j-jith renamed this gist Sep 17, 2016. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  14. j-jith created this gist Sep 17, 2016.
    23 changes: 23 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    $ sudo apt build-dep vim

    $ git clone https://github.com/vim/vim.git

    $ cd vim/src

    $ sudo make distclean

    $ ./configure --enable-multibyte \
    --enable-rubyinterp \
    --enable-pythoninterp \
    --with-python-config-dir=/usr/lib/python2.7/config-x86_64-linux-gnu \
    --enable-perlinterp \
    --enable-luainterp \
    --enable-cscope \
    --enable-gui=auto \
    --enable-gtk2-check \
    --with-x \
    --prefix=/path/to/install/dir

    $ make

    $ make install