casey / casey/reap.vim

Strip leading whitespace from code before evaluating

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
good first issue
Dominant language
Python
Stars
20
Forks
1
PR merge metrics
No merged PRs in 30d

Description

If auto-indent is turned on and you're inside of a statement in the buffer, python code that you write will be indented. However, leading whitespace a the beginning of python code is always an error. We should probably strip leading whitespace from code before evaluating it.

Contributor guide

Open the contributing guide

Research direction

Start by tracing the plugin's code-evaluation path and how auto-indent affects code inside a statement. Reproduce the leading-whitespace case, then verify that evaluating indented Python succeeds without changing other evaluation behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, vim
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.