]> apps.delaporte.us Git - dotfiles.git/blobdiff - files/vimrc
naming
[dotfiles.git] / files / vimrc
index 19c388ab51ece292d34acecc752a0d198d3a2889..68a8ea9946c1224bd77762a160f39d4c7b1793db 100644 (file)
@@ -30,21 +30,11 @@ filetype off                  " required
 "  autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
 " endif
 
-" =================
-" Here be Plugins!
-" =================
-" call plug#begin('~/.vim/plugged')
-
-" Markdown highlighting
-" Plug 'tpope/vim-markdown'
-" Plug 'plasticboy/vim-markdown'
-" let g:markdown_github_languages = ['sh', 'python']
-
+" Old Plugins
+" -----------
 " Distraction free writing.
 " Plug 'junegunn/goyo.vim'
 
-" Better status line.
-" Plug 'bling/vim-airline'
 
 " Plugin 'Windows-PowerShell-Syntax-Plugin'
 
@@ -83,13 +73,55 @@ au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2
 " Working with Markdown
 
 au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
-" colorscheme desert
+colorscheme desert
 
 " https://justinjoyce.dev/every-built-in-vim-color-scheme-with-screenshots/
 set bg=dark
 set number
 
-set backupdir=c:\temp,.backup/,~/.backup/,/tmp//
+
+" =================
+"  Plugins vim 8+
+" =================
+"
+" clone into ~/.vim/pack/vendor/opt
+" dotfiles/invoke/setup-linux has helper tasks to install
+packadd nerdtree
+
+" Markdown Sytax
+packadd markdown
+let g:vim_markdown_folding_disabled = 1
+syntax on
+
+" Better status line.
+" packadd airline
+
+" Local-only LLM support
+" You're trying to kidnap what I've rightfully stolen.
+" packadd vim-ollama
+" Remember to run :Ollama pipinstall
+
+set tabstop=2 shiftwidth=2 expandtab
+set backupdir=~/.backup/,/tmp//
 set directory=~/.swp
-set undodir=c:\temp,.undo/,~/.undo/,/tmp//
+set undodir=~/.undo/,/tmp//
 set backspace=indent,eol,start " Do not be pedantic about backspace.
+
+
+" =================
+"  GitHub CoPilot
+" =================
+
+let g:copilot_filetypes = {
+        \ 'python': v:true,
+        \ 'markdown': v:false
+\}
+
+" Disable Copilot for files larger than 100kb
+autocmd BufReadPre *
+    \ let f=getfsize(expand("<afile>"))
+    \ | if f > 100000 || f == -2
+    \ | let b:copilot_enabled = v:false
+    \ | endif
+
+