syntax on set background=dark set nu set ai set si set ts=4 set sts=4 set sw=4 set expandtab set ww=[,],<,> set bs=start,indent,eol set hlsearch set mouse=a set display=uhex set encoding=utf-8 set fileencoding=utf-8 map : ! open % map : ! clear && gcc -pthread %<.c -o %< -g -Wall -Wconversion -Wextra map : ! clear && g++ -pthread %<.cpp -o %< -g -Wall -Wconversion -Wextra -Wno-deprecated-declarations map : ! lldb ./%< map : vs output.txt map : vs input.txt autocmd BufWritePre *.py :%s/\s\+$//e nnoremap :callLongLineHLToggle() hi OverLength ctermbg=none cterm=none match OverLength /\%>80v/ fun! s:LongLineHLToggle() if !exists('w:longlinehl') let w:longlinehl = matchadd('ErrorMsg', '.\%>80v', 0) echo "Long lines highlighted" else call matchdelete(w:longlinehl) unl w:longlinehl echo "Long lines unhighlighted" endif endfunction