2023-11-19 15:42:05 +01:00
|
|
|
" vim preferences
|
|
|
|
set number
|
|
|
|
set relativenumber
|
|
|
|
syntax on
|
|
|
|
|
2023-11-19 16:22:49 +01:00
|
|
|
" No arrow keys
|
|
|
|
noremap <Up> <Nop>
|
|
|
|
noremap <Down> <Nop>
|
|
|
|
noremap <Left> <Nop>
|
|
|
|
noremap <Right> <Nop>
|
|
|
|
|
2023-11-19 15:42:05 +01:00
|
|
|
" 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'
|
2023-11-19 16:22:49 +01:00
|
|
|
Plug 'machakann/vim-highlightedyank'
|
|
|
|
Plug 'tpope/vim-commentary'
|
|
|
|
Plug 'wellle/targets.vim'
|
2024-03-07 14:25:45 +01:00
|
|
|
Plug 'vim-scripts/loremipsum'
|
2023-11-19 15:42:05 +01:00
|
|
|
|
2024-03-07 14:25:45 +01:00
|
|
|
call plug#end()
|