Created
July 21, 2014 09:59
-
-
Save moonstruck/95b1360effd80c89f8c1 to your computer and use it in GitHub Desktop.
Revisions
-
nfarrar renamed this gist
Apr 26, 2014 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -54,7 +54,7 @@ In order to get support for the clipboard and necessary interpreters, we need to # set /usr/local/bin/vim as default for vi, vim and editor sudo update-alternatives --set vim "/usr/local/bin/vim" sudo update-alternatives --set vi "/usr/local/bin/vim" sudo update-alternatives --set editor "/usr/local/bin/vim" ### References -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -49,12 +49,12 @@ In order to get support for the clipboard and necessary interpreters, we need to # install /usr/local/bin/vim as alternative for vi, vim, and editor sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/editor" "editor" "/usr/local/bin/vim" 1 # set /usr/local/bin/vim as default for vi, vim and editor sudo update-alternatives --set vim "/usr/local/bin/vim" sudo update-alternatives --set vi "/usr/local/bin/vim" sudo update-alternatives --set editor "/usr/bin/vim" ### References -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 2 additions and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -46,12 +46,12 @@ In order to get support for the clipboard and necessary interpreters, we need to # return to previous directory popd # install /usr/local/bin/vim as alternative for vi, vim, and editor sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/editor" "editor" /usr/local/bin/vim 1 # set /usr/local/bin/vim as default for vi, vim and editor sudo update-alternatives --set vim /usr/local/bin/vim sudo update-alternatives --set vi /usr/local/bin/vim sudo update-alternatives --set editor /usr/bin/vim -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 11 additions and 7 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,11 +7,10 @@ In order to get support for the clipboard and necessary interpreters, we need to # install some additional, necessary tools: sudo apt-get -y install checkinstall mercurial python-dev python3.3-dev # clone the latest version of vim source: sudo hg clone https://vim.googlecode.com/hg/ /usr/local/src/vim # change to src directory pushd /usr/local/src/vim # build our makefile (install to /usr/local): @@ -44,17 +43,22 @@ In order to get support for the clipboard and necessary interpreters, we need to # install vim using checkinstall (debian) sudo checkinstall # return to previous directory popd # install /usr/local/bin/vim as alternatives for vi, vim, and editor sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/editor" "editor" /usr/local/bin/vim 1 # set /usr/local/bin/vim as default sudo update-alternatives --set vim /usr/local/bin/vim sudo update-alternatives --set vi /usr/local/bin/vim sudo update-alternatives --set editor /usr/bin/vim ### References + [Building vim](http://vim.wikia.com/wiki/Building_Vim) + [Building vim from source](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source) + [Compile vim with support for x11-clipboard, ruby & python](http://kowalcj0.wordpress.com/2013/11/19/how-to-compile-and-install-latest-version-of-vim-with-support-for-x11-clipboard-ruby-python-2-3/) + [Set vim as default on debian](http://blog.sanctum.geek.nz/vim-as-debian-default/) -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 3 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,8 @@ In order to get support for the clipboard and necessary interpreters, we need to sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common # clone the latest version of vim source: sudo hg clone https://vim.googlecode.com/hg/ /usr/local/src/vim pushd /usr/local/src/vim # build our makefile (install to /usr/local): sudo ./configure \ @@ -49,9 +50,7 @@ In order to get support for the clipboard and necessary interpreters, we need to sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 # set vim as the default editor: sudo update-alternatives --set editor /usr/bin/vim sudo update-alternatives --set vi /usr/bin/vim ### References -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -26,7 +26,6 @@ In order to get support for the clipboard and necessary interpreters, we need to --enable-pythoninterp \ --with-python-config-dir=$(python2.7-config --configdir) ## python3 support (not currently working) # --enable-python3interp \ # --with-python3-config-dir=$(python3.3-config --configdir) @@ -59,4 +58,4 @@ In order to get support for the clipboard and necessary interpreters, we need to + [Building vim](http://vim.wikia.com/wiki/Building_Vim) + [Building vim from source](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source) + [Compile vim with support for x11-clipboard, ruby & python](http://kowalcj0.wordpress.com/2013/11/19/how-to-compile-and-install-latest-version-of-vim-with-support-for-x11-clipboard-ruby-python-2-3/) -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -13,8 +13,7 @@ In order to get support for the clipboard and necessary interpreters, we need to # clone the latest version of vim source: sudo hg clone https://vim.googlecode.com/hg/ /usr/local/src/vim && pushd /usr/local/src/vim # build our makefile (install to /usr/local): sudo ./configure \ --prefix=/usr/local \ --enable-gui=no \ -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 29 additions and 32 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,23 +1,20 @@ ## Installation In order to get support for the clipboard and necessary interpreters, we need to compile and install from source. # install build dependencies for vim: sudo apt-get -y build-dep vim # install some additional, necessary tools: sudo apt-get -y install checkinstall mercurial python-dev python3.3-dev # remove existing vim packages: sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common # clone the latest version of vim source: sudo hg clone https://vim.googlecode.com/hg/ /usr/local/src/vim && pushd /usr/local/src/vim # build our makefile: # install to /usr/local sudo ./configure \ --prefix=/usr/local \ --enable-gui=no \ @@ -28,39 +25,39 @@ Configure make to build vim with support for python 2 an 3.3.5: --enable-luainterp \ --enable-rubyinterp \ --enable-pythoninterp \ --with-python-config-dir=$(python2.7-config --configdir) ## python3 support (not currently working) # --enable-python3interp \ # --with-python3-config-dir=$(python3.3-config --configdir) # # with gui support # --enable-gui=auto \ # --enable-gtk2-check \ # --enable-gnome-check # # for additional configuration options use ./configure --help # build vim, specify the runtimedir sudo make VIMRUNTIMEDIR=/usr/share/vim/vim74 # install vim using checkinstall (debian) sudo checkinstall # register our version of vim with update-alternatives sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 # set vim as the default editor: sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1 sudo update-alternatives --set editor /usr/bin/vim 1 sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1 sudo update-alternatives --set vi /usr/bin/vim ### References + [Building vim](http://vim.wikia.com/wiki/Building_Vim) + [Building vim from source](https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source) + [Compile vim with support for x11-clipboard, ruby & python](http://kowalcj0.wordpress.com/2013/11/19/how-to-compile-and-install-latest-version-of-vim-with-support-for-x11-clipboard-ruby-python-2-3/) -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 3 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,3 @@ ## Compiling vim 7.4 from source Build dependencies for vim: @@ -30,16 +29,15 @@ Configure make to build vim with support for python 2 an 3.3.5: --enable-rubyinterp \ --enable-pythoninterp \ --with-python-config-dir=$(python2.7-config --configdir) \ ## python3 support (not currently working) --enable-python3interp \ --with-python3-config-dir=$(python3.3-config --configdir) # with gui support (no gui required) --enable-gui=auto \ --enable-gtk2-check \ --enable-gnome-check Compile && install: -
nfarrar revised this gist
Mar 24, 2014 . 1 changed file with 6 additions and 5 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,4 +1,5 @@ ## Compiling vim 7.4 from source Build dependencies for vim: sudo apt-get -y build-dep vim @@ -31,28 +32,28 @@ Configure make to build vim with support for python 2 an 3.3.5: --with-python-config-dir=$(python2.7-config --configdir) \ --with-compiledby="Nathan Farrar <[email protected]" ## python3 support (not currently working) --with-python3-config-dir=$(python3.3-config --configdir) \ --with-compiledby="Nathan Farrar <[email protected]" # with gui support (no gui required) --enable-gui=auto \ --enable-gtk2-check \ --enable-gnome-check \ Compile && install: sudo make VIMRUNTIMEDIR=/usr/share/vim/vim74 sudo checkinstall Create alternatives category for vim: sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 Set as the default editor: sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1 sudo update-alternatives --set editor /usr/bin/vim 1 sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1 -
nfarrar created this gist
Mar 24, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,67 @@ ## Compiling from Source Build dependencies for vim: sudo apt-get -y build-dep vim Install necessary packages for building vim: sudo apt-get -y install checkinstall mercurial python-dev python3.3-dev Remove existing vim packages: sudo apt-get remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common Clone latest vim source: sudo hg clone https://vim.googlecode.com/hg/ /usr/local/src/vim Configure make to build vim with support for python 2 an 3.3.5: pushd /usr/local/src/vim sudo ./configure \ --prefix=/usr/local \ --enable-gui=no \ --with-features=huge \ --with-x \ --enable-cscope \ --enable-perlinterp \ --enable-luainterp \ --enable-rubyinterp \ --enable-pythoninterp \ --with-python-config-dir=$(python2.7-config --configdir) \ --with-compiledby="Nathan Farrar <[email protected]" ## python3 support (not currently working) --with-python3-config-dir=$(python3.3-config --configdir) \ --with-compiledby="Nathan Farrar <[email protected]" # with gui support --enable-gui=auto \ --enable-gtk2-check \ --enable-gnome-check \ Compile && install: sudo make VIMRUNTIMEDIR=/usr/share/vim/vim74 sudo checkinstall Set as default editor: sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vim" "vim" "/usr/local/bin/vim" 1 sudo update-alternatives --install "/usr/bin/vi" "vi" "/usr/local/bin/vim" 1 sudo update-alternatives --install /usr/bin/editor editor /usr/bin/vim 1 sudo update-alternatives --set editor /usr/bin/vim 1 sudo update-alternatives --install /usr/bin/vi vi /usr/bin/vim 1 sudo update-alternatives --set vi /usr/bin/vim ### References + https://help.ubuntu.com/community/CheckInstall + https://gist.github.com/adonis0147/5844126 + http://vim.wikia.com/wiki/Building_Vim + https://github.com/Valloric/YouCompleteMe/wiki/Building-Vim-from-source + http://kowalcj0.wordpress.com/2013/11/19/how-to-compile-and-install-latest-version-of-vim-with-support-for-x11-clipboard-ruby-python-2-3/