<p>Scintilla does different things when using SCI_WORDRIGHT, SCI_WORDLEFT,<br>
SCI_WORDRIGHTEND and SCI_WORDLEFTEND than what we want for commands like<br>
"w", "b", "W", "B", "e", "E", etc. For instance, for</p>
<p>ident1 = id|ent2+ident3;</p>
<p>where | represents the cursor, SCI_WORDRIGHT does</p>
<p>ident1 = ident2+|ident3;</p>
<p>while Vim's "w" does</p>
<p>ident1 = ident2|+ident3;</p>
<p>For this reason we have to reimplement all the word navigation by ourselves<br>
to better emulate the behavior of Vim. This patch tries to do that.</p>
<p>Should <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #909.">fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="498478710" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany-plugins/issues/909" data-hovercard-type="issue" data-hovercard-url="/geany/geany-plugins/issues/909/hovercard" href="https://github.com/geany/geany-plugins/issues/909">#909</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany-plugins/pull/919'>https://github.com/geany/geany-plugins/pull/919</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>vimode: Don't use word navigation from Scintilla</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany-plugins/pull/919/files#diff-0">vimode/src/cmds/motion.c</a>
    (288)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany-plugins/pull/919.patch'>https://github.com/geany/geany-plugins/pull/919.patch</a></li>
  <li><a href='https://github.com/geany/geany-plugins/pull/919.diff'>https://github.com/geany/geany-plugins/pull/919.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/919?email_source=notifications&email_token=AAIOWJ2WFWF46VG35YGV3SLQNCGWLA5CNFSM4I5XVUGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP2SRWQ">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJZ7ZB66XCALGWVPDV3QNCGWLANCNFSM4I5XVUGA">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJYLBSWJIIBOTNCD6W3QNCGWLA5CNFSM4I5XVUGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP2SRWQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/919?email_source=notifications\u0026email_token=AAIOWJ2WFWF46VG35YGV3SLQNCGWLA5CNFSM4I5XVUGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP2SRWQ",
"url": "https://github.com/geany/geany-plugins/pull/919?email_source=notifications\u0026email_token=AAIOWJ2WFWF46VG35YGV3SLQNCGWLA5CNFSM4I5XVUGKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HP2SRWQ",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>