Last active
May 15, 2025 18:55
-
-
Save codingismycraft/87f7d1bd6feb8e3b36a5246ec7a9255a to your computer and use it in GitHub Desktop.
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 characters
| # Remove existing versions of vim | |
| cd | |
| sudo apt update | |
| sudo apt install git -y | |
| # Install konsole | |
| sudo apt update | |
| sudo apt install konsole | |
| # Install conky | |
| sudo apt update | |
| sudo apt install conky-all -y | |
| # Install tmux | |
| sudo apt update | |
| sudo apt install tmux -y | |
| git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm | |
| sudo apt install xclip | |
| sudo apt purge vim -y | |
| sudo apt autoremove -y | |
| sudo apt update | |
| sudo apt purge --auto-remove vim-gtk3 -y | |
| sudo apt remove vim vim-runtime gvim vim-tiny vim-common vim-gui-common -y | |
| # Install xclip to allow system clipboard register. | |
| sudo apt install xclip -y | |
| # Clone and install the vim from source. | |
| cd | |
| git clone https://github.com/vim/vim.git | |
| sudo apt install libncurses5-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python3-dev ruby-dev mercurial -y | |
| cd | |
| cd vim | |
| ./configure --with-features=huge --enable-multibyte --enable-rubyinterp --enable-python3interp --with-python-config-dir=/usr/lib/python3.9/config-3.9-x86_64-linux-gnu --enable-perlinterp --enable-luainterp --enable-gui=gtk2 --enable-cscope --prefix=/usr | |
| sudo make install | |
| cd | |
| # Clone Vundle as vim pluggin manager. | |
| git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
| # Install autopep8 if needed. | |
| pip3 install autopep8 | |
| # Install flake8 if needed. | |
| pip3 install flake8 | |
| # Install pylint if needed. | |
| pip3 install pylint | |
| # Install dotfiles | |
| git clone https://github.com/codingismycraft/dotfiles.git | |
| cd dotfiles/ | |
| ./install.sh | |
| # At this point open vim and run :PluginInstall | |
| # when done complete the installation of YouCompleteMe | |
| cd | |
| vim +PluginInstall +qall | |
| # In newer versions of YouCompleteMe i had to remove the following | |
| # argument argparse.BooleanOptionalAction as can be seem fromt this exception | |
| # that is raised otherwise: | |
| # | |
| # Traceback (most recent call last): | |
| # File "/home/vagrant/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 1372, in <module> | |
| # Main() | |
| # File "/home/vagrant/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 1332, in Main | |
| # args = ParseArguments() | |
| # File "/home/vagrant/.vim/bundle/YouCompleteMe/third_party/ycmd/build.py", line 570, in ParseArguments | |
| # parser.add_argument( '--regex', action = argparse.BooleanOptionalAction, | |
| # AttributeError: module 'argparse' has no attribute 'BooleanOptionalAction' | |
| sudo apt install clang -y | |
| cd ~/.vim/bundle/YouCompleteMe | |
| sudo snap install cmake --classic | |
| ./install.py --clang-completer | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment