Skip to content

Instantly share code, notes, and snippets.

@Valinwolf
Last active January 14, 2020 21:17
Show Gist options
  • Save Valinwolf/ad993ad1756a8f58ba01f812bb7eff26 to your computer and use it in GitHub Desktop.
Save Valinwolf/ad993ad1756a8f58ba01f812bb7eff26 to your computer and use it in GitHub Desktop.
My VIM Configs
set mouse-=a
#!/bin/bash
if [ "$EUID" -ne 0 ]
then
echo "Root Required."
exit 1
fi
echo "Creating /etc/vim/ and subdirectories..."
mkdir -p /etc/vim/plugins
echo "Including New VIM configs..."
echo -e "source /etc/vim/vimrc.plug\nsource /etc/vim/vimrc\nif filereadable(expand("~/.vimrc.plug"))\n source ~/.vimrc.plug\nendif" >> /etc/vimrc
echo "Installing VimPlug..."
wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim -O /usr/share/vim/vim81/autoload/plug.vim
echo "Installing New VIM Configs..."
wget https://gist.githubusercontent.com/ad993ad1756a8f58ba01f812bb7eff26/raw/vimrc.plug -O /etc/vim/vimrc.plug
wget https://gist.githubusercontent.com/ad993ad1756a8f58ba01f812bb7eff26/raw/vimrc -O /etc/vim/vimrc
echo "Don't forget to run the following command without sudo:"
echo 'wget https://gist.githubusercontent.com/ad993ad1756a8f58ba01f812bb7eff26/raw/.vimrc -O ~/.vimrc'
set tabstop=4
set softtabstop=4
set shiftwidth=4
set background=dark
set laststatus=2
set title
set noshowmode
set termguicolors
set noexpandtab
set showmatch
set ignorecase
set nowrap
set number
let g:edge_style = 'neon'
let g:edge_disable_italic_comment = 1
let g:lightline = {'colorscheme' : 'edge'}
syntax on
PlugInstall
colorscheme edge
call plug#begin('/etc/vim/plugins')
Plug 'sainnhe/edge'
Plug 'sheerun/vim-polyglot'
Plug 'itchyny/lightline.vim'
call plug#end()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment