rootfs/home/andre/.vimrc hinzugefügt
This commit is contained in:
32
rootfs/home/andre/.vimrc
Normal file
32
rootfs/home/andre/.vimrc
Normal file
@@ -0,0 +1,32 @@
|
||||
" =========================
|
||||
" Basis-Einstellungen
|
||||
" =========================
|
||||
|
||||
" 1) Syntax-Highlighting / Syntax-Check aktivieren
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
|
||||
" Optional: automatische Syntaxprüfung mit :make (wenn Compiler/Linter konfiguriert ist)
|
||||
set autowrite
|
||||
set makeprg=
|
||||
|
||||
" 2) Mausunterstützung komplett abschalten
|
||||
set mouse=
|
||||
|
||||
" 3) Visuellen Modus deaktivieren
|
||||
nnoremap v <Nop>
|
||||
nnoremap V <Nop>
|
||||
nnoremap <C-v> <Nop>
|
||||
|
||||
" 4) Syntax per Ctrl+Shift+S toggeln
|
||||
function! ToggleSyntax()
|
||||
if exists("g:syntax_on")
|
||||
syntax off
|
||||
echo "Syntax OFF"
|
||||
else
|
||||
syntax on
|
||||
echo "Syntax ON"
|
||||
endif
|
||||
endfunction
|
||||
|
||||
nnoremap <C-S-s> :call ToggleSyntax()<CR>
|
||||
Reference in New Issue
Block a user