I often use vim via terminal wrapper (e.g. gnome-terminal --disable-factory --command='vim /tmp/firefox12345.txt') to edit a textarea on websites, e.g. when writing this question.
Whenever I put in a block of code I wonder if I can somehow:
- visually select whole indented part of text in the current buffer
- open it in a new one
- change the filetype to match the syntax (e.g. javascript)
- edit, write and close it
- have vim "update" all my changes in the original buffer
filetype detectwould be preferable. – joeytwiddle Dec 12 '15 at 05:01:h NR-hooksfor this :) – VanLaser Dec 12 '15 at 10:01