Skip to content
Snippets Groups Projects
Commit 41d79f29 authored by Sven Mäder's avatar Sven Mäder :speech_balloon:
Browse files

Cleanup vimrc default by Claude

parent 23b3d8e4
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,6 @@ syntax on "enable syntax highlighting
set nocompatible "use vim defaults instead of 100% vi compatibility
set encoding=utf8 "default file encoding
set ttyfast "fast terminal
"set mouse=i "enable mouse in insert mode
set mouse= "disable mouse mode
filetype plugin on "enable filetype plugins
filetype indent on "automatic indentation according to filetype
......@@ -42,8 +41,8 @@ set display=lastline "show beginning of broken line at bottom of window inste
set wildmenu "show matches for command-line completion
set wildmode=longest:full,full "define how tab completion proceeds on partial match
set wildignore+=*.o,*.pdf "Let tab completion ignore certain file types
"set listchars=eol:¬,tab:>-,trail:~,space:· "define replacement for invisible characters (set invlist)
set fillchars=fold:-
set t_Co=256 "use 256 colors
" temporary workaround for jessie's old vim version
if v:version >704 || v:version==704 && has('patch710')
......@@ -54,7 +53,7 @@ endif
au FileType * setl fo-=c fo-=r fo-=o
"}}}
" --- keyboard mappings ---{{{
" --- functions ---{{{
" --- map key to toggle opt ---
function MapToggle(key, opt)
let cmd = ':set '.a:opt.'! \| set '.a:opt."?\<CR>"
......@@ -72,6 +71,13 @@ function ToggleMouse()
endif
endfunc
" --- Clean trailing spaces ---
function! CleanSpaces()
%s/\s\+$//e
endfunction
"}}}
" --- keyboard mappings ---{{{
" --- F key toggles ---
" toggle paste mode (normal/insert)
MapToggle <F2> paste
......@@ -97,19 +103,18 @@ map <space> za
map <Leader>s :set invspell<CR>
" remap \n to toggle display of line numbers
map <Leader>n :set invnu<CR>
" remap \h to stop hlsearch until next search
map <Leader>h :noh<CR>
"}}}
" --- colorscheme ---{{{
" use pablo color scheme
colorscheme pablo
" load jellybeans if available
:silent! colorscheme jellybeans
" make comments more readable with lighter grey
highlight Comment ctermfg=Grey
set t_Co=256 "use 256 colors
" --- jellybeans ---
:silent! colorscheme jellybeans
" --- background ---
" use no background in terminal instead of grey
highlight Normal ctermbg=none
......@@ -119,11 +124,8 @@ highlight SpecialKey ctermbg=none
" --- highlights ---
" tweak todo to be brighter
highlight Todo guifg=Cyan guibg=Black gui=none ctermbg=36 cterm=none ctermfg=9
" red color for custom todo text
highlight RedTodo guifg=Red guibg=Black gui=none ctermfg=9 ctermbg=0 cterm=none
" highlight superfluous whitespace in orange
highlight ExtraWhiteSpace guifg=White guibg=#DF5F00 gui=bold ctermfg=255 ctermbg=166 cterm=bold
"highlight ExtraWhitespace ctermbg=red guibg=red
"}}}
" --- whitespace ---{{{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment