Skip to content

Instantly share code, notes, and snippets.

View olmokramer's full-sized avatar
💭
#codegradelife

Olmo Kramer olmokramer

💭
#codegradelife
View GitHub Profile
@olmokramer
olmokramer / commentstring.vim
Created July 20, 2019 15:55
Update 'commentstring' in HTML files
" ~/.vim/autoload/commentstring.vim
function! s:matchcontext(stack, context) abort
for group in split(a:context, ',')
if group[0] == '!'
if index(a:stack, group[1:]) != -1
return 0
endif
else
if index(a:stack, group) == -1
@olmokramer
olmokramer / .vimrc
Last active September 9, 2019 20:48
Vim delete mode
" ~/.vim/vimrc
nmap <Leader>D <Plug>(delete-mode-start)