Sublime Text 3 code narrowing like vim plugin NrrwRgn
Just copy source code from sublimetext.com/forum/
Origin Author: BugFix
But origin version cant handle unicode content, so i made little patch here.
My User/Default (OSX).sublime-keymap
// open selected region in new window
{ "keys": ["ctrl+shift+n"], "command": "narrow" },
// close window and write changed text back
{ "keys": ["ctrl+shift+c"], "command": "narrow", "args": {"action": "replace"} },