<p dir="auto">Steps to reproduce:</p>
<ol dir="auto">
<li>Open a file in atom with the package <code class="notranslate">vim-mode</code> enabled.</li>
<li>Change the file permissions.</li>
<li><kbd>Esc</kbd> <kbd>i</kbd> (switch to insert mode).</li>
</ol>
<p dir="auto"><strong>Atom Version</strong>: 0.165.0<br>
<strong>System</strong>: Mac OS X 10.10.2<br>
<strong>Thrown From</strong>: Atom Core</p>
<h3 dir="auto">Stack Trace</h3>
<p dir="auto">Uncaught Error: EACCES, open '/Users/Yvan/Downloads/test.css'</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: EACCES, open '/Users/Yvan/Downloads/test.css'
  at Error (native)
"><pre class="notranslate"><code class="notranslate">At /Applications/Atom.app/Contents/Resources/app/node_modules/pathwatcher/node_modules/q/q.js:126

Error: EACCES, open '/Users/Yvan/Downloads/test.css'
  at Error (native)

</code></pre></div>
<h3 dir="auto">Commands</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="     -0:00.0 vim-mode:activate-insert-mode (input.hidden-input)"><pre class="notranslate"><code class="notranslate">     -0:00.0 vim-mode:activate-insert-mode (input.hidden-input)
</code></pre></div>
<h3 dir="auto">Config</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
  &quot;editor&quot;: {
    &quot;fontSize&quot;: 12,
    &quot;tabLength&quot;: 4,
    &quot;showInvisibles&quot;: true,
    &quot;softWrap&quot;: true,
    &quot;autoIndentOnPaste&quot;: false
  }
}"><pre class="notranslate"><code class="notranslate">{
  "editor": {
    "fontSize": 12,
    "tabLength": 4,
    "showInvisibles": true,
    "softWrap": true,
    "autoIndentOnPaste": false
  }
}
</code></pre></div>
<h3 dir="auto">Installed Packages</h3>
<div class="highlight highlight-source-coffee notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="# User
ascii-codes, v0.3.3
autocomplete-plus, v1.0.0
color-picker, v1.2.6
editor-stats, v0.16.0
file-icons, v1.4.3
html-entities, v0.2.0
language-haskell, v1.0.0
language-latex, v0.4.1
language-rust, v0.3.2
language-viml, v0.2.0
linter, v0.9.0
linter-coffeelint, v0.1.7
linter-javac, v0.1.3
linter-jshint, v0.1.0
linter-php, v0.0.11
linter-pylint, v0.2.0
linter-rubocop, v0.2.1
linter-scalac, v0.3.3
linter-scss-lint, v0.0.11
linter-shellcheck, v0.0.6
linter-xmllint, v0.0.5
minimap, v3.4.9
project-manager, v1.14.1
tabs-to-spaces, v0.8.0
travis-ci-status, v0.11.1
vim-mode, v0.22.0
visual-bell, v0.9.0

# Dev
No dev packages"><pre class="notranslate"><span class="pl-c"><span class="pl-c">#</span> User</span>
ascii<span class="pl-k">-</span>codes, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
autocomplete<span class="pl-k">-</span>plus, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
color<span class="pl-k">-</span>picker, v1.<span class="pl-ii">2</span>.<span class="pl-ii">6</span>
editor<span class="pl-k">-</span>stats, v0.<span class="pl-ii">16</span>.<span class="pl-ii">0</span>
file<span class="pl-k">-</span>icons, v1.<span class="pl-ii">4</span>.<span class="pl-ii">3</span>
html<span class="pl-k">-</span>entities, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>haskell, v1.<span class="pl-ii">0</span>.<span class="pl-ii">0</span>
language<span class="pl-k">-</span>latex, v0.<span class="pl-ii">4</span>.<span class="pl-ii">1</span>
language<span class="pl-k">-</span>rust, v0.<span class="pl-ii">3</span>.<span class="pl-ii">2</span>
language<span class="pl-k">-</span>viml, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
linter, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>coffeelint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">7</span>
linter<span class="pl-k">-</span>javac, v0.<span class="pl-ii">1</span>.<span class="pl-ii">3</span>
linter<span class="pl-k">-</span>jshint, v0.<span class="pl-ii">1</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>php, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span>
linter<span class="pl-k">-</span>pylint, v0.<span class="pl-ii">2</span>.<span class="pl-ii">0</span>
linter<span class="pl-k">-</span>rubocop, v0.<span class="pl-ii">2</span>.<span class="pl-ii">1</span>
linter<span class="pl-k">-</span>scalac, v0.<span class="pl-ii">3</span>.<span class="pl-ii">3</span>
linter<span class="pl-k">-</span>scss<span class="pl-k">-</span>lint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">11</span>
linter<span class="pl-k">-</span>shellcheck, v0.<span class="pl-ii">0</span>.<span class="pl-ii">6</span>
linter<span class="pl-k">-</span>xmllint, v0.<span class="pl-ii">0</span>.<span class="pl-ii">5</span>
minimap, v3.<span class="pl-ii">4</span>.<span class="pl-ii">9</span>
project<span class="pl-k">-</span>manager, v1.<span class="pl-ii">14</span>.<span class="pl-ii">1</span>
tabs<span class="pl-k">-</span>to<span class="pl-k">-</span>spaces, v0.<span class="pl-ii">8</span>.<span class="pl-ii">0</span>
travis<span class="pl-k">-</span>ci<span class="pl-k">-</span>status, v0.<span class="pl-ii">11</span>.<span class="pl-ii">1</span>
vim<span class="pl-k">-</span>mode, v0.<span class="pl-ii">22</span>.<span class="pl-ii">0</span>
visual<span class="pl-k">-</span>bell, v0.<span class="pl-ii">9</span>.<span class="pl-ii">0</span>

<span class="pl-c"><span class="pl-c">#</span> Dev</span>
<span class="pl-en">No</span> <span class="pl-en">dev</span> packages</pre></div>
<p dir="auto">Perhaps put a message in the status bar or somewhere else, but catch it either way.</p>