fix: the one true vim

This commit is contained in:
Strix 2023-11-19 15:42:05 +01:00
parent 9f7579a55e
commit 7e009a8b50
No known key found for this signature in database
GPG key ID: 5F35B3B8537287A7
4 changed files with 21 additions and 6 deletions

View file

@ -42,4 +42,5 @@ container() {
ash
}
alias q="exit"
alias q="exit"
alias vim="nvim"

View file

@ -4,11 +4,11 @@ describe="Install vim and it's stuff"
scripts="@distro @self"
apply() {
[ -e "$HOME/.vimrc" ] || ln files/.vimrc $HOME/.vimrc
[ -e "$HOME/.nvimrc" ] || ln files/.nvimrc $HOME/.nvimrc
[ -e "$HOME/.ideavimrc" ] || ln files/.ideavimrc $HOME/.ideavimrc
}
undo() {
unlink $HOME/.vimrc
unlink $HOME/.nvimrc
unlink $HOME/.ideavimrc
}

View file

@ -0,0 +1,17 @@
" vim preferences
set number
set relativenumber
syntax on
" ensure vim-plug
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin()
Plug 'ThePrimeagen/vim-be-good'
call plug#end()

View file

@ -1,3 +0,0 @@
set number
set relativenumber
syntax on