Janis
  • Member for 6 years, 7 months
  • Last seen more than 6 years ago
Easiest way to delete e.printStackTrace();
4 votes

I'm not sure that is the optimal way, but I'd basically do: dB. That will keep the ;, so that depending on whether I want to instantly continue adding new text at the place of the replacement or just ...

View answer
How to search for pattern in certain syntax regions?
1 votes

In case your "math zones" are qualified by some syntactical pattern, say, the string "math", then you could at least use pattern sequences to find a line with the matching pattern, as in: :/math//...

View answer
Execute current file outside of working directory
Accepted answer
1 votes

There are various possibilities, but I think you'd either have to jump back (cd -), or execute the command in a subshell; e.g.: :! cd somedir; bash ~-/% ; cd - :! bash -c 'cd somedir ; bash ~-/%'

View answer
How to yank a line with a certain line number?
1 votes

Besides the ex-mode commands that you've got you can achieve that also it in command mode, e.g. by: 4GY'' - which means: goto line 4 (4G), yank line (Y), and return to previous line (''). You can ...

View answer