1 " -------------------------------------------------------
5 " -------------------------------------------------------
7 " Let the leader key be ,
13 " iPad and Android keyboards have no ESC Key
18 set nocompatible " be iMproved, required
20 set omnifunc=syntaxcomplete#Complete
22 filetype off " required
25 " Install vim-plug if missing
27 " let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
28 " if empty(glob(data_dir . '/autoload/plug.vim'))
29 " silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
30 " autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
35 " Distraction free writing.
36 " Plug 'junegunn/goyo.vim'
39 " Plugin 'Windows-PowerShell-Syntax-Plugin'
41 " PowerShell Highlighting and detection
42 " Plug 'pprovost/vim-ps1'
45 " Plug NLKNguyen/papercolor-theme
48 " Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
52 filetype plugin indent on " required for Vundle Bundle
54 nnoremap <leader>w :Goyo<Cr>
56 " If not something else, then assume Markdown
60 " Don't show tabs for HTML files. Do show trailing spaces."
61 au FileType html set nolist
62 au FileType javascript set nolist
64 set softtabstop=4 " makes the spaces feel like real tabs
66 " Sensible default for everything else.
71 au BufNewFile,BufRead *.go set noet ts=2 sw=2 sts=2
73 " Working with Markdown
75 au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
78 " https://justinjoyce.dev/every-built-in-vim-color-scheme-with-screenshots/
87 " clone into ~/.vim/pack/vendor/opt
88 " dotfiles/invoke/setup-linux has helper tasks to install
93 let g:vim_markdown_folding_disabled = 1
99 " Local-only LLM support
100 " You're trying to kidnap what I've rightfully stolen.
102 " Remember to run :Ollama pipinstall
104 set backupdir=~/.backup/,/tmp//
106 set undodir=~/.undo/,/tmp//
107 set backspace=indent,eol,start " Do not be pedantic about backspace.