Skip to content

Latest commit

 

History

History
75 lines (56 loc) · 1.43 KB

vim.md

File metadata and controls

75 lines (56 loc) · 1.43 KB

dotbraga / ViM

This doc explains the installation process of Vim and plugins. After the installation process, the folders autoload and plugged will be created, containing cached files for loaded plugins.


Installation

./install vim

Folder structure

The install script will create the symlinks with this structure:

${HOME}
├── .vim
│   ├── plugins
│   │   ├── airline.vim
│   │   ├── nerdtree.vim
│   │   └── onedark_braga.vim
│   └── settings
│       ├── basics.vim
│       ├── colors.vim
│       ├── keybindings.vim
│       └── plugins.vim
└── .vimrc

Compile ViM from source

#!/bin/bash

# Install dependencies
sudo apt install -y \
  clang \
  libgtk-3-dev \
  libpython3-dev \
  libtool-bin \
  libxt-dev \
  make

# Get Vim latest version
VIM_SRC="$HOME"/www/oss/vim
cd "$VIM_SRC" || exit
git pull origin master

# Enable Python 3 interpreter
sed -i '/^#CONF_OPT_PYTHON3 = --enable-python3interp$/s/^#//g' src/Makefile

# Install Vim
make
make test
sudo make install

# Undo src/Makefile changes
git checkout src/Makefile