This repository has been archived on 2023-06-26. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/nvim/init.vim
2020-08-09 21:24:35 +01:00

23 lines
753 B
VimL

if ! filereadable(system('echo -n "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim"'))
silent !mkdir -p ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/
silent !curl "https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim" > ${XDG_CONFIG_HOME:-$HOME/.config}/nvim/autoload/plug.vim
autocmd VimEnter * PlugInstall
endif
call plug#begin(system('echo -n "$XDG_DATA_HOME:-$HOME/.local/share}/nvim/plugged"'))
call plug#end()
" Basics
set nocompatible
filetype plugin on
syntax on
set encoding=utf-8
set number relativenumber
set nohlsearch
" Disable automatic commenting on newline
autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
" Open split at bottom and right
set splitbelow splitright