summaryrefslogtreecommitdiff
path: root/vimrc.2025.enabledmouse
blob: 11bed82054761b70e21c9478a2ab105afeaeed14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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