Skip to content

Instantly share code, notes, and snippets.

@thinca
Created January 20, 2009 19:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thinca/49607 to your computer and use it in GitHub Desktop.
Save thinca/49607 to your computer and use it in GitHub Desktop.
" 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