@@ -0,0 +1,398 @@
+import sublime, sublime_plugin%0A%0Aclass SublimeCastlingCommand(sublime_plugin.TextCommand):%0A%09def run(self, edit):%0A%09%09view = self.view;%0A%09%09try:%0A%09%09%09view.sel()%5B1%5D;%0A%09%09%09s1 = view.substr(view.sel()%5B0%5D);%0A%09%09%09s2 = view.substr(view.sel()%5B1%5D);%0A%09%09%09self.view.replace(edit, view.sel()%5B0%5D, s2);%0A%09%09%09self.view.replace(edit, view.sel()%5B1%5D, s1);%0A%09%09except IndexError:%0A%09%09%09sublime.status_message('Please Make A Selection');%0A

Create sublimeCastling.py