set caretmovement
set caretmovement= { logical | visual}
This command sets the movement of the text cursor within documents that contain mixed left-to-right (LTR) and right-to-left (RTL) content. RTL editing is required for the Arabic and Hebrew locales.
The default is logical, which means cursor movements that are usually interpreted as moving to the left or right are instead interpreted as moving towards the start or end of a document. For example, pressing the left arrow key in RTL text will move the cursor towards the right. When you set this command to visual, the cursor moves to the literal left or right regardless of the locale.
Related Topics