diff --git a/.config/install-scripts/001-from-git.sh b/.config/install-scripts/001-from-git.sh index 5b09d88..5c84888 100755 --- a/.config/install-scripts/001-from-git.sh +++ b/.config/install-scripts/001-from-git.sh @@ -1,5 +1,5 @@ #!/bin/bash -$GIT_URL="https://git.cusack.cloud/acid/dotfiles.git" +GIT_URL="https://git.cusack.cloud/acid/dotfiles.git" git clone --bare $GIT_URL $HOME/.cfg function config { /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ diff --git a/.config/install-scripts/003-packages.sh b/.config/install-scripts/003-packages.sh new file mode 100755 index 0000000..1781a98 --- /dev/null +++ b/.config/install-scripts/003-packages.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +packages="htop neovim" + +aptcommand="sudo apt-get" +if [[ "$EUID" -eq 0 ]]; then + aptcommand="apt-get" +fi + +$aptcommand update +$aptcommand install -y $packages diff --git a/.config/install-scripts/004-vim.sh b/.config/install-scripts/004-vim.sh new file mode 100755 index 0000000..92ed501 --- /dev/null +++ b/.config/install-scripts/004-vim.sh @@ -0,0 +1,3 @@ +#!/bin/bash +git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim +vim +PluginInstall +qall diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim new file mode 100644 index 0000000..f182e5b --- /dev/null +++ b/.config/nvim/init.vim @@ -0,0 +1,3 @@ +set runtimepath^=~/.vim runtimepath+=~/.vim/after +let &packpath = &runtimepath +source ~/.vimrc diff --git a/.vimrc b/.vimrc index a7ed0f7..5e3eb1c 100644 --- a/.vimrc +++ b/.vimrc @@ -1,8 +1,36 @@ " My Vimrc - Sean C + +" Vundle +set nocompatible " be iMproved, required +filetype off " required + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +" alternatively, pass a path where Vundle should install plugins +"call vundle#begin('~/some/path/here') + +" let Vundle manage Vundle, required +Plugin 'VundleVim/Vundle.vim' + +Plugin 'chriskempson/base16-vim' + +" All of your Plugins must be added before the following line +call vundle#end() " required +filetype plugin indent on " required +" +" Brief help +" :PluginList - lists configured plugins +" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate +" :PluginSearch foo - searches for foo; append `!` to refresh local cache +" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal +" +" see :h vundle for more details or wiki for FAQ + " Colours -colorscheme solarized +colorscheme base16-default-dark syntax enable -set background=dark +set termguicolors highlight LineNr term=bold cterm=NONE ctermfg=DarkGrey ctermbg=NONE gui=NONE guifg=DarkGrey guibg=NONE " line number colours " Spaces & Tabs set tabstop=4 " number of visual spaces per TAB