![]() command without forking Vintage mode, I bound it to Super+' and it works the same as Vim’s.ĭownload the GotoLastEdit plugin on Github. ![]() ![]() While I couldn’t bind my plugin to the '. If you use Vintage mode in Sublime Text 2, you’ll quickly discover that this command does nothing - worse than nothing, in fact, as it seems to refocus your cursor somewhere other than the text of the buffer, forcing you to use your mouse to recover. in a buffer in Vim to move the cursor to the last edit. The plugin I wrote creates a Wrap Code command (mapped to gq in Vintage mode) that works reasonably on commented lines of code (and uncommented lines), multiple paragraphs and selected text, thanks to the codewrap.py module written by Nir Soffer.ĭownload the WrapCode plugin on Github. Sublime Text 2 had a “wrap” feature, but it failed to intelligently wrap comments, it joined separate paragraphs together and it wouldn’t reflow selected text (only the paragraph around the cursor). Some people don’t care about this, but I prefer to keep lines of code less than 80 characters wide, so I can open multiple files side-by-side. Vim’s reformat text command ( gq) can take multiple paragraphs and text in comments and flow them to the current textwidth setting. And patches are always welcome, of course. If you’d like to donate some money to help me update them, you can do so here. Update: The following plugins may not work with Sublime Text 3. Update: I also found the navigationHistory plugin, which does a pretty good job of back/forward jumps. However, Sublime Text 2 has a great Python API and I was able to whip up plugins for these tasks that perform just as well as in Vim. Display full path to current file ( :echo expand('%:p')).While I enjoy using it and I experienced the “Wow, this does 90% of what Vim does” moment, I kept a running list of all the features in the remaining 10% that I relied on every day. I’ve been trying out Sublime Text 2 as a replacement for Vim.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |