diff options
| -rw-r--r-- | vimrc | 38 | ||||
| -rw-r--r-- | vimrc.2025.enabledmouse | 37 |
2 files changed, 52 insertions, 23 deletions
@@ -1,37 +1,29 @@ -" Load Debian-specific Vim configuration +" also look at /etc/vim/vimrc runtime! debian.vim -" Enable filetype detection, plugins, and indenting filetype plugin indent on -" Disable mouse completely by default -set mouse=n +" Plugins +" Plugin 'fatih/vim-go' -" Ensure mouse is disabled in insert mode -autocmd InsertEnter * set mouse= -autocmd InsertLeave * set mouse=n - -" Set encoding +set mouse=r set encoding=utf-8 set fileencoding=utf-8 - -" Enable syntax highlighting syntax on +au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif -" Restore cursor position when reopening a file -autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif +" display's line numbers +" -set t_te= -" Prevent Vim from clearing the screen on exit -set t_ti= -set t_te= +" to keep vim from clearing the screen on exit +:set t_te= -" Viminfo settings -set viminfo='50,<1000,s100,:0,n~/.cache/viminfo' - -" Vim-Go settings (commented out, enable if needed) +" stuff for vim-go " let g:go_def_mode='gopls' " let g:go_info_mode='gopls' -" Text width settings for formatting (commented out, enable if needed) -" set textwidth=80 -" gq for formatting +" vim -u ~/.config/wit/vimrc +:set viminfo='50,<1000,s100,:0,n~/.cache/viminfo + +" :set textwidth=80 +" :gq diff --git a/vimrc.2025.enabledmouse b/vimrc.2025.enabledmouse new file mode 100644 index 0000000..11bed82 --- /dev/null +++ b/vimrc.2025.enabledmouse @@ -0,0 +1,37 @@ +" Load Debian-specific Vim configuration +runtime! debian.vim + +" Enable filetype detection, plugins, and indenting +filetype plugin indent on + +" Disable mouse completely by default +set mouse=n + +" 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 + +" Restore cursor position when reopening a file +autocmd BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif + +" 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' + +" Vim-Go settings (commented out, enable if needed) +" let g:go_def_mode='gopls' +" let g:go_info_mode='gopls' + +" Text width settings for formatting (commented out, enable if needed) +" set textwidth=80 +" gq for formatting |
