Skip to content

Commit

Permalink
fed: Implement C and D (change/delete to end of line)
Browse files Browse the repository at this point in the history
  • Loading branch information
meithecatte committed Mar 18, 2023
1 parent 8cba8e0 commit fc5f85f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions files/fed.fth
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,8 @@ variable paste-linewise
>> defop delete d bind normal
: (change) (delete) is-linewise @ if insert-above else insert-mode then ;
>> defop change c bind normal
: delete-lend delete lend ; >> char D bind normal
: change-lend change lend ; >> char C bind normal

: paste-at ( b -- ) dup #paste @ make-space
#paste @ 0 ?do i pb@ over i + b! loop drop ;
Expand Down

0 comments on commit fc5f85f

Please sign in to comment.