I’m a relative newbie to st2 and st3, great editor… thanks for the work (happy to purchase).
Couldn’t seem to find info on these questions after much searching and playing… any help would be appreciated:
ST3 questions (build 3021):
-
when scrolling down a line at a time when my cursor hits screen bottom it then “jump scrolls” to screen middle
- can this be disabled? ST2 doesn’t do this for me, it just scrolls one line down at the bottom as desired leaving cursor at bottom
-
I read about Goto Definition and Goto Symbol spanning files in my project (great)…but I don’t see options (at all)
with either Perl or Python code … how do I enable them (or troubleshoot them not being visible)
More general question. A common thing I do in VIM is something like this in command mode:
a) position cursor at line I want to cut to
b) ma (places mark ‘a’ at a line in a file)
c) move cursor down a number of lines (for example, 20 lines down)
d) d’a (deletes to mark a, includes current line and line mark ‘a’ is on, also captures delete into “yank” buffer, simple ‘p’ puts it below the current line)
-> one can extend this and delete into a buffer, "ad’a (delete into buffer ‘a’ up to mark ‘a’)
-> one can instead ‘yank’ and leave it via y’a or yank into a buffer "b’a or "by’a (yank into buffer b current line and all lines to mark a line)
I’ve requested these features from the Vintageous plugin folks (very helpful, it’s on their list). In the mean time I’m
curious how one would do this “sublime native” (without the mouse)… very simple, line based cut or delete to mark
and then paste (perhaps with different named buffers but that is secondary, just one buffer or the system clipboard
is fine as well, I used a “stacked” clipboard via copy paste pro).
I can’t find an easy line-based way to do this (cursor position on line seems to matter in the methods I’ve tried, but I
don’t want it to matter… I just want the entire set of lines yanked or deleted. I’ve tried this for instance in my own
key bindings:
{ "keys": "super+k", "super+m"], "command": "set_mark" },
{ "keys": "alt+m"], "command": "set_mark" },
{ "keys": "alt+y"], "command": "select_to_mark" },
{ "keys": "alt+d"], "command": "delete_to_mark" }
]
And then I expect to drop a mark, alt+m, move down some number of lines and then select to mark or delete
to mark. Doesn’t seem to fly… I can set the mark (and see the dot on the line) no problem… but can’t seem
to delete or yank (ideally I’d like to delete and yank at the same time like in vim). Toss me a bone if you can.
I’m working to turn Sublime into my main editor going forward as it’s just amazing in many ways… but copy/paste
is something I could use a hint or two at (I’ve read lots of google search results and just haven’t found an easy
way to emulate this).
Aside: in ST2 VIntage mode this does’t work either… although it’s “close”, I can run 5"ayy for instance to
yank 5 lines into buffer a from my current cursor position… and I can place a mark via “ma”, and move
to it via 'a today but I can’t cut/yank to it yet via d’a for instance (or with named buffers).
Thanks again! Hope to speed up my keyboard based workflow w.r.t cut/yank/paste
Erik