diff options
| author | Jeff Carr <[email protected]> | 2025-02-16 09:20:49 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-16 09:20:49 -0600 |
| commit | 475c865902a7a87fd1c0462ec7531ba7783e9694 (patch) | |
| tree | 6822309b2a07a34f4d3378ab013aecfd7371f217 | |
| parent | 8edfd981d81ab9e6dce2c5c6c08f0e501a600a49 (diff) | |
thank good math but also human assholes for this
Signed-off-by: Jeff Carr <[email protected]>
| -rw-r--r-- | vimrc | 39 |
1 files changed, 22 insertions, 17 deletions
@@ -1,32 +1,37 @@ -" also look at /etc/vim/vimrc +" Load Debian-specific Vim configuration runtime! debian.vim +" Enable filetype detection, plugins, and indenting filetype plugin indent on -" Plugins -" Plugin 'fatih/vim-go' +" Disable mouse completely by default +set mouse=n -" set mouse=a -set mouse= +" Ensure mouse is disabled in insert mode +autocmd InsertEnter * set mouse= +autocmd InsertLeave * set mouse=n + +" Set encoding set encoding=utf-8 set fileencoding=utf-8 + +" Enable syntax highlighting syntax on -au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif -" display's line numbers -" -set t_te= +" Restore cursor position when reopening a file +autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif -" to keep vim from clearing the screen on exit -set t_ti= t_te= +" Prevent Vim from clearing the screen on exit +set t_ti= +set t_te= +" Viminfo settings +set viminfo='50,<1000,s100,:0,n~/.cache/viminfo' -" stuff for vim-go +" Vim-Go settings (commented out, enable if needed) " let g:go_def_mode='gopls' " let g:go_info_mode='gopls' -" vim -u ~/.config/.vimrc -" set viminfo+=n~/.vim/viminfo -set viminfo='50,<1000,s100,:0,n~/.cache/viminfo - -" :set textwidth=80 -" :gq +" Text width settings for formatting (commented out, enable if needed) +" set textwidth=80 +" gq for formatting |
