Sublime Text makes me feel silly for loving a text editor so much. Now if only it would do text completion across multiple files...
Handy text manipulation tricks in Sublime Text 2
11–20 of 99 posts
Re: Handy text manipulation tricks in Sublime Text 2
#12Re: Handy text manipulation tricks in Sublime Text 2
#13Sublime Text makes me feel silly for loving a text editor so much. Now if only it would do text completion across multiple files...
Is there a CTags plugin you can use?
Re: Handy text manipulation tricks in Sublime Text 2
#14My favourite feature is definently multiple cursors; Ctrl+D selects the next occurance of your highlighted word, Alt+F3 selects all occurances.
Re: Handy text manipulation tricks in Sublime Text 2
#15My favourite feature is definently multiple cursors; Ctrl+D selects the next occurance of your highlighted word, Alt+F3 selects all occurances.
Re: Handy text manipulation tricks in Sublime Text 2
#16My favourite feature is definently multiple cursors; Ctrl+D selects the next occurance of your highlighted word, Alt+F3 selects all occurances.
That's interesting. Can you edit all selected occurrences at once? I don't think there's an immediate analogue in Vim.
Re: Handy text manipulation tricks in Sublime Text 2
#17Vim equivalents if you're feeling jealous (matching the order in the article): J Join line. ddp Swap line with the one below. ddkP Swap line with the one above. dd Delete current line yyp Duplicate line gq} Rewrap a paragraph. Vu Lowercase a line VU Uppercase a line Sort the selection by the Unix `sort` command (eg. sort -rn for reverse numeric order): V :!sort It goes a bit pear-shaped for these ones, though: Title-…
Re: Handy text manipulation tricks in Sublime Text 2
#18For whatever it’s worth, all of these are copied directly from TextMate. :-)
Re: Handy text manipulation tricks in Sublime Text 2
#19Vim equivalents if you're feeling jealous (matching the order in the article): J Join line. ddp Swap line with the one below. ddkP Swap line with the one above. dd Delete current line yyp Duplicate line gq} Rewrap a paragraph. Vu Lowercase a line VU Uppercase a line Sort the selection by the Unix `sort` command (eg. sort -rn for reverse numeric order): V :!sort It goes a bit pear-shaped for these ones, though: Title-…
>> ddp Swap line with the one below. >> ddkP Swap line with the one above.
>> dd Delete current line >> yyp Duplicate line
>> gq} Rewrap a paragraph.
These shortcuts work in Sublime too, with Vintage mode enabled.
Re: Handy text manipulation tricks in Sublime Text 2
#20Vim equivalents if you're feeling jealous (matching the order in the article): J Join line. ddp Swap line with the one below. ddkP Swap line with the one above. dd Delete current line yyp Duplicate line gq} Rewrap a paragraph. Vu Lowercase a line VU Uppercase a line Sort the selection by the Unix `sort` command (eg. sort -rn for reverse numeric order): V :!sort It goes a bit pear-shaped for these ones, though: Title-…
" Move a line of text using ALT+[jk] or Comamnd+[jk] on mac
nmap mz:m+`z
nmap mz:m-2`z
vmap :m'>+`mzgv`yo`z
vmap :m'`>my`
nmap
vmap
vmap
endif