Skip to content

Instantly share code, notes, and snippets.

View yinsyim's full-sized avatar
🐬
🐋

Daniel yinsyim

🐬
🐋
View GitHub Profile
@yinsyim
yinsyim / vim8_with_lua.sh
Last active March 29, 2021 10:35 — forked from techgaun/vim8.x_with_lua
Install vim with lua support on ubuntu
sudo apt-get remove --purge vim vim-runtime vim-gnome vim-tiny vim-common vim-gui-common
sudo apt-get build-dep vim-gnome
sudo apt-get install build-essential liblua5.3-0 liblua5.3-dev python-dev ruby-dev libperl-dev libncurses5-dev libgnome2-dev libgnomeui-dev libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev
sudo rm -rf /usr/local/share/vim /usr/bin/vim /usr/local/bin/vim
sudo mkdir /usr/include/lua5.3/{include,lib}
sudo cp /usr/include/lua5.3/*.h /usr/include/lua5.3/include/
sudo ln -sf /usr/lib/x86_64-linux-gnu/liblua5.3.so /usr/include/lua5.3/lib/liblua.so
sudo ln -sf /usr/lib/x86_64-linux-gnu/liblua5.3.a /usr/include/lua5.3/lib/liblua.a
cd /tmp
git clone https://github.com/vim/vim.git

Install vim with lua in CentOS

from original page


Install

# yum -y remove vim-*
@yinsyim
yinsyim / remove_git_submodule_traces.md
Created September 20, 2019 08:14
remove git submodule traces, since git 1.7.8

remove git submodule traces, since git 1.7.8

from stackoverflow


A submodule cloned using git 1.7.8 or newer will leave at most four traces of itself in your local repo. The process for removing those four traces is given by the three commands below:

// Remove the submodule entry from .git/config
@yinsyim
yinsyim / delete_git_submodule.md
Last active September 20, 2019 08:09
delete a git submodule, since git 1.8.5.2

delete a git submodule, since git 1.8.5.2

from stackoverflow


# git rm the_submodule
# rm -rf .git/modules/the_submodule
@yinsyim
yinsyim / delete_git_submodule.md
Last active September 20, 2019 08:19
delete a git submodule, since git 1.8.3(April 22d, 2013)

delete a git submodule, since git 1.8.3(April 22d, 2013)

from stackoverflow


  1. mv a/submodule a/submodule_tmp

  2. git submodule deinit -f -- a/submodule

  3. rm -rf .git/modules/a/submodule

@yinsyim
yinsyim / delete_git_submodule.md
Last active September 20, 2019 07:16 — forked from myusuf3/delete_git_submodule.md
How effectively delete a git submodule.

To remove a submodule you need to:

  1. Delete the relevant section from the .gitmodules file.
  2. Stage the .gitmodules changes git add .gitmodules
  3. Delete the relevant section from .git/config.
  4. Run git rm --cached path_to_submodule (no trailing slash).
  5. Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  6. Commit git commit -m "Removed submodule "
  7. Delete the now untracked submodule files rm -rf path_to_submodule