Skip to content

Latest commit

 

History

History
122 lines (111 loc) · 5.14 KB

README.md

File metadata and controls

122 lines (111 loc) · 5.14 KB

Neovim/Vim Configuration Files

Installation

Steps (further explained below):

  1. Copy the init.vim file to the correct location for either Neovim or Vim
  2. Install Vundle Plugin Manager and Vim plugins
  3. Follow optional installation steps as desired

Neovim (RECOMMENDED)

git clone
mkdir -p ~/.config/nvim/
cp dotfiles/nvim/init.vim ~/.config/nvim/init.vim

Vim

git clone
cp dotfiles/vim/init.vim ~/.vimrc
cp dotfiles/vim/.vim_plugins.vim ~/

Vundle Plugin Manager

This is a mandatory prerequisite for usage of the this init.vim.

Install Vundle:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Then open vim/nvim and run the following to install all of the plugins that are used by this init.vim:

:PluginInstall

(Or from the command-line: nvim -c ":PluginInstall" or vim -c ":PluginInstall")

Themes and Appearance

Powerline

Install Powerline for slick bottom/top bars and fonts that are enabled in this init.vim. The vim-airline* plugins and their configurations set in this init.vim require that Powerline is installed, but vim will function fine without it (there will just be some odd characters in the buffer and tab bars). Consult Powerline - Installation on Linux and Powerline Fonts for the most up-to-date installation instructions. A summary is here for convenience but may be out of date:

pip install --user powerline-status

To install the fonts, do one of the following:

Debian/Ubuntu:

sudo apt-get install fonts-powerline

Fedora:

sudo dnf install powerline-fonts

Other:

# clone
git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh
# clean-up a bit
cd ..
rm -rf fonts

Markdown Viewing

Markdown viewing is an optional feature, and it requires another application to perform the actual viewing of the markdown file. The options supported by this init.vim file are haroopad, google-chrome and chromium-browser.

Haroopad

The following steps were used on CentOS7 and Fedora29:

wget https://bitbucket.org/rhiokim/haroopad-download/downloads/haroopad-v0.12.2_amd64.tar.gz
tar -zxvf haroopad-v0.12.2_amd64.tar.gz
tar -zxvf data.tar.gz
sudo cp -r ./usr /
tar zxf control.tar.gz
chmod 755 postinst
sudo ./postinst

The first time you open haroopad, click View->Mode->Viewer so that it will function only as a Markdown preview tool, since Vim will of course be your editor.

Chrome

The other options for viewing markdown are google-chrome or chromium-browser, but you will likely need to install a markdown-preview browser extension.

Syntastic - Syntax Checker/Linter Installation

More information on Syntastic's usage, see Syntastic. To use the syntastic plugin for Python syntax checking, install the flake8 linter:

For Python2.7:

sudo apt-get install python-flake8
pip install --user flake8

For Python3:

sudo apt-get install python3-flake8
pip3 install --user flake8

Vim Plugins