Skip to content

Instantly share code, notes, and snippets.

View ryentzer's full-sized avatar

saltyCode ryentzer

  • Forbenmedia
  • USA
  • 13:06 (UTC -04:00)
View GitHub Profile
tell application "BBEdit"
tell window 1
set start_line to startLine of selection
set end_line to endLine of selection
select (lines start_line thru end_line)
set selectionCopy to duplicate selection
select insertion point after selection
set selection to selectionCopy
set newInsertionPoint to (characterOffset of selection) + (length of selection) - 1
select insertion point before character newInsertionPoint
defaults write org.vim.MacVim MMTextInsetRight '20'