Skip to content

LoreleiPenn/Vim-Settings

Repository files navigation

Vim Settings

This configuration repository was created under ~/.config/nvim with the idea to keep my personal nvim and vim settings stored within Github. So for using these configuration, you must

  • Create the folder ~/.config/nvim (i.e. mkdir -p ~/.config/nvim).
  • Then cd into ~/.config/nvim.
  • And execute
    git clone [email protected]:LoreleiPenn/Vim-Settings.git .

Neovim

For neovim, this should be all in order for it to install the plugins and read my configuration. The following files are Neovim configuration:

  • init.vim (Most common settings, setup and sourcing of personal settings).
  • ginit basis.vim (for loading options concerning the GUI. This is a basis for ginit.vim so that GUI settings are not mixed due to different screen hardware like font size).
  • local_init.vim (where most personal settings are written).

Vim

For vim, I am using vimrc, vimrc.local and vimrc.local.bundles as hardlinks for ~/.vimrc, ~/.vimrc.local and ~/.vimrc.local.bundles. So after cloning the code, a hardlink must be made so that Vim detects the configuration and install the plugins.

Setup Script

There is a script for automating the setup of these settings. For running such script, execute

	sh -c "$(curl -pfsSL https://raw.githubusercontent.com/LoreleiPenn/Vim-Settings/master/setup-vim-config.sh)"

and it will do the instructions mentioned prior to this point.

Font

These configuration files use Hack Nerd Font Mono as the font for the Vim and Neovim GUI. Make sure to install it from https://github.com/ryanoasis/nerd-fonts.

Windows Configuration

In order to use this configuration in Windows, you need to download and install git (https://git-scm.com/download/win). After doing so, it is enough to do the following instructions under git bash:

  • Create the folder ~/AppData/Local/nvim (i.e. mkdir -p ~/AppData/Local/nvim).
  • Then cd into ~/AppData/Local/nvim.
  • And execute
    git clone [email protected]:LoreleiPenn/Vim-Settings.git .

For linking the files vimrc, vimrc.local and vimrc.local.bundles so that Vim can read the configuration, you need to execute on cmd.exe the following commands:

	mklink /H %userprofile%\_vimrc vimrc
	mklink /H %userprofile%\_vimrc.local vimrc.local
	mklink /H %userprofile%\_vimrc.local.bundles vimrc.local.bundles

About

Personal configuration files for Vim and Neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published