This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-06
Channels
- # adventofcode (99)
- # announcements (9)
- # aws (3)
- # babashka (22)
- # beginners (90)
- # boot (2)
- # calva (22)
- # cider (8)
- # clj-kondo (14)
- # cljsrn (20)
- # clojure (24)
- # clojure-europe (4)
- # clojure-italy (3)
- # clojure-losangeles (1)
- # clojure-nl (83)
- # clojure-spain (1)
- # clojure-spec (46)
- # clojure-uk (43)
- # clojuredesign-podcast (70)
- # clojurescript (40)
- # cursive (25)
- # datomic (9)
- # duct (3)
- # emacs (14)
- # figwheel-main (2)
- # fulcro (61)
- # graalvm (8)
- # juxt (7)
- # kaocha (2)
- # leiningen (19)
- # luminus (5)
- # malli (58)
- # off-topic (4)
- # re-frame (11)
- # reitit (5)
- # rewrite-clj (3)
- # shadow-cljs (63)
- # sql (5)
- # testing (5)
- # tools-deps (26)
- # uncomplicate (2)
- # vim (4)
is there an evil-mode way of turning a yank line y y
to be inserted at the cursor when p
rather than newline?
well, p just inserts it in the lines above. Basically when you do yy
it yanks the line but p and P never insert at cursor, but below or above where the cursor is
I want to insert a yanked line at the cursor without the newline
If you killed a line, you’d yank a line. I suppose you can write advising function that taps into evil-yank-characters
or evil-yank-line
and modify kill-ring content, but I feel you’re trying to solve a problem which is not a problem :)
I often get that urge to “fix” something, would spend hours trying to write lots of emacs-lisp only at the end to realize that I don’t have the problem to begin with. Emacs is weird, it makes you do weird stuff - just because you can.
I believe that's the reason for evil-textobj-line - ie. using yal
instead of yy
to begin with
@UCPS050BV yil
actually worked nicely
yal copies the whitespace, yil seems to ignore it
I actually never think of l
as a text object lol,
I guess you could use i ^R "
instead of p
?
basically pased ignoring the newlines at the beginning and end of the yanked text