diff options
| author | Justine Smithies <justine@smithies.me.uk> | 2026-03-04 19:11:17 +0000 |
|---|---|---|
| committer | Justine Smithies <justine@smithies.me.uk> | 2026-03-04 19:11:17 +0000 |
| commit | 24133450fef1d16c25b85c342872db8d49a8428d (patch) | |
| tree | dc890e585a48896d19c68640bb6a24acc7056449 | |
| parent | ca3ce8c47a052c09bead037e9b40ed528c5e34f3 (diff) | |
Removed old .vimrc and replaced with new .config/vim/vimrc as per vim 9.2
| -rw-r--r-- | .config/vim/vimrc (renamed from .vimrc) | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/.vimrc b/.config/vim/vimrc index 2d8da9b..6573c9b 100644 --- a/.vimrc +++ b/.config/vim/vimrc @@ -44,13 +44,13 @@ set omnifunc=syntaxcomplete#Complete set completeopt=menuone,noselect " Don't autoselect the completion " Setup undo history -if !isdirectory($HOME."/.vim") - call mkdir($HOME."/.vim", "", 0770) +if !isdirectory($HOME."/.config/vim") + call mkdir($HOME."/.config/vim", "", 0770) endif -if !isdirectory($HOME."/.vim/undo-dir") - call mkdir($HOME."/.vim/undo-dir", "", 0700) +if !isdirectory($HOME."/.config/vim/undo-dir") + call mkdir($HOME."/.config/vim/undo-dir", "", 0700) endif -set undodir=~/.vim/undo-dir +set undodir=~/.config/vim/undo-dir set undofile " Colors @@ -219,7 +219,7 @@ set tabline=%!SpawnBufferLine() " Assign the tabline " Add UpdateVimPackages command using the internal package system of vim function! UpdatePackages() " Gather all top-level package directories from both start and opt - let l:packages = globpath('~/.vim/pack/*/start/*', '', 0, 1) + globpath('~/.vim/pack/*/opt/*', '', 0, 1) + let l:packages = globpath('~/.config/vim/pack/*/start/*', '', 0, 1) + globpath('~/.config/vim/pack/*/opt/*', '', 0, 1) " Open a new tab for output tabnew | setlocal buftype=nofile | setlocal bufhidden=delete | setlocal noswapfile @@ -252,6 +252,6 @@ endfunction command! UpdateVimPackages call UpdatePackages() " To add plugins see examples below -" git clone https://github.com/BourgeoisBear/clrzr ~/.vim/pack/plugins/start/clrzr +" git clone https://github.com/BourgeoisBear/clrzr ~/.config/vim/pack/plugins/start/clrzr " -" git clone https://github.com/morhetz/gruvbox ~/.vim/pack/colorschemes/opt/gruvbox +" git clone https://github.com/morhetz/gruvbox ~/.config/vim/pack/colorschemes/opt/gruvbox |
