<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Eduardo Aranda Hernández</title>
    <description>The latest articles on DEV Community by Eduardo Aranda Hernández (@eduardoarandah).</description>
    <link>https://dev.to/eduardoarandah</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F888167%2Fee9eada2-65ac-4a42-88b0-74482a9dd7d0.jpeg</url>
      <title>DEV Community: Eduardo Aranda Hernández</title>
      <link>https://dev.to/eduardoarandah</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/eduardoarandah"/>
    <language>en</language>
    <item>
      <title>Cómo usar Acentos y Ñ en teclado inglés con AutoHotkey</title>
      <dc:creator>Eduardo Aranda Hernández</dc:creator>
      <pubDate>Mon, 24 Oct 2022 23:10:23 +0000</pubDate>
      <link>https://dev.to/eduardoarandah/como-usar-acentos-y-n-en-teclado-ingles-con-autohotkey-2egh</link>
      <guid>https://dev.to/eduardoarandah/como-usar-acentos-y-n-en-teclado-ingles-con-autohotkey-2egh</guid>
      <description>&lt;p&gt;Caracteres en español usando CapsLock&lt;br&gt;
Presionar CapsLock mas la vocal para acentuarla&lt;br&gt;
Para la ñ se puede usar la n o la tecla ; (porque ahí estaba la ñ originalmente)&lt;br&gt;
Para la ¿ usamos CapsLock y la tecla que tiene actualmente el ?&lt;/p&gt;

&lt;p&gt;&lt;a href="https://gist.github.com/eduardoarandah/512a949e1d6e57d90bd1260ba3bfb062"&gt;https://gist.github.com/eduardoarandah/512a949e1d6e57d90bd1260ba3bfb062&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;; mapear la n como ñ
CapsLock &amp;amp; n::
If GetKeyState("Shift", "P")
    Send Ñ
Else
    Send ñ
return 

; mapear la ; como ñ
CapsLock &amp;amp; `;::
If GetKeyState("Shift", "P")
    Send Ñ
Else
    Send ñ
return 

; mapear la ? como ¿
CapsLock &amp;amp; /::¿

; mapear las vocales
CapsLock &amp;amp; a::
If GetKeyState("Shift", "P")
    Send Á
Else
    Send á
return

CapsLock &amp;amp; e::
If GetKeyState("Shift", "P")
    Send É
Else
    Send é
return 

CapsLock &amp;amp; i::
If GetKeyState("Shift", "P")
    Send Í
Else
    Send í
return 

CapsLock &amp;amp; o::
If GetKeyState("Shift", "P")
    Send Ó
Else
    Send ó
return 

CapsLock &amp;amp; u::
If GetKeyState("Shift", "P")
    Send Ú
Else
    Send ú
return 
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
    </item>
    <item>
      <title>Vim to neovim migration helper</title>
      <dc:creator>Eduardo Aranda Hernández</dc:creator>
      <pubDate>Wed, 06 Jul 2022 18:28:28 +0000</pubDate>
      <link>https://dev.to/eduardoarandah/vim-to-neovim-migration-helper-19cp</link>
      <guid>https://dev.to/eduardoarandah/vim-to-neovim-migration-helper-19cp</guid>
      <description>&lt;p&gt;When migrating your config, it's super boring to check:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;if values are already defaults&lt;/li&gt;
&lt;li&gt;is it vim.opt or vim.g ? &lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  So I made this script
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;local opts = {
    ai = true, -- Auto indent
    autoindent = true, -- Auto indent
    autoread = true, -- Detect changes
        ..... your options here .....   
}

local function checkopts()
    print("Options you can discard because they're default:")
    for k, v in pairs(opts) do
        if vim.opt[k]:get() == v then
            print(k, v)
        end
    end
end
checkopts()
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;


&lt;p&gt;just paste your options and &lt;code&gt;:source %&lt;/code&gt; the file&lt;/p&gt;
&lt;h2&gt;
  
  
  Want to make options permanent?
&lt;/h2&gt;

&lt;p&gt;this would be the same as doing &lt;code&gt;vim.opt.youroption = yourvalue&lt;/code&gt; on each value&lt;br&gt;
&lt;/p&gt;
&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-- set options
for k, v in pairs(opts) do  
    vim.opt[k] = v
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;

&lt;h2&gt;
  
  
  Full example:
&lt;/h2&gt;

&lt;p&gt;This also includes globals like colorscheme&lt;/p&gt;


&lt;div class="ltag_gist-liquid-tag"&gt;
  
&lt;/div&gt;



</description>
      <category>neovim</category>
      <category>vim</category>
    </item>
  </channel>
</rss>
