Skip to content

Instantly share code, notes, and snippets.

@thinca

thinca/prison.vim

Created Jan 20, 2009
Embed
What would you like to do?
" The Vim prison.
" Can you leave from the vim?
redir => g
silent! autocmd
redir END
for i in filter(split(g, "\n")[1:], "v:val !~ '^\\s'")
execute 'autocmd!' i
endfor
mapclear
mapclear!
for i in split('<ESC><C-c><C-[><C-o><C-r>', '\(<[^<>]\+>\|.\)\zs')
execute 'inoremap' i '<Nop>'
endfor
startinsert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment