]> apps.delaporte.us Git - dotfiles.git/blobdiff - files/vimrc
Fixes for go install
[dotfiles.git] / files / vimrc
index 1bda1d8a3867b5ebea46504909ad3293a0375f9c..68a8ea9946c1224bd77762a160f39d4c7b1793db 100644 (file)
@@ -101,8 +101,27 @@ syntax on
 " packadd vim-ollama
 " Remember to run :Ollama pipinstall
 
-
-set backupdir=c:\temp,.backup/,~/.backup/,/tmp//
+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
+
+