<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Carlos P. Jimeno on Medium]]></title>
        <description><![CDATA[Stories by Carlos P. Jimeno on Medium]]></description>
        <link>https://medium.com/@jimeno0?source=rss-97ba9f73fa86------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*C1ACqRA5ozYv_D25GN1b6A.jpeg</url>
            <title>Stories by Carlos P. Jimeno on Medium</title>
            <link>https://medium.com/@jimeno0?source=rss-97ba9f73fa86------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 18 Nov 2026 04:51:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jimeno0/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Some vim useful tips ]]></title>
            <link>https://medium.com/@jimeno0/some-vim-useful-tips-e45ceaed119a?source=rss-97ba9f73fa86------2</link>
            <guid isPermaLink="false">https://medium.com/p/e45ceaed119a</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Carlos P. Jimeno]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 21:07:59 GMT</pubDate>
            <atom:updated>2018-11-18T21:11:55.402Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*JZAp2NJ7RMWr6cGSygOrTw.png" /></figure><h3>TL/TR</h3><p>👋 My name is Carlos, I’ve been using vim for a year and coding for about two and a half and I want to share all the stuff I would have loved to know when I started to learn vim (and even a few months ago).</p><h3>Keyboard hacks</h3><ul><li><strong>Remap your caps lock to ctrl</strong></li></ul><p>In Vim I strongly use the ctrl key. Remapping caps lock to ctrl is pretty easy from the keyboard settings and you can’t imagine how confortable and quick is to use ctrl in the caps key 😍</p><ul><li><strong>Increase key repeat and decrease delay until repeat</strong></li></ul><p>Dummy tip but I can’t imagine myself using Vim without these two options settled to the max. Easy to change from the keyboard settings.</p><ul><li><strong>Change your keyboard to US qwerty keyboard</strong></li></ul><p>It may sound stupid, but, I’m from Spain and I never thought about my keyboard type until one day, trying to increase my typing speed, I found a game that was meant to use with the US qwerty. It was like a disclosure, every coding sign and especially Vim keys position makes sense. I strongly recommend to use it if you don’t.</p><h3>Basic Vim configuration</h3><p>Without any plugins you can still add some custom configuration that can make your life easier as a vim user.</p><p><em>This configuration should be added to your configuration file either </em><em>vim.init as a neovim user or </em><em>.vimrc as a vim user. Just add the following lines, save and type </em><em>:so % to try it.</em></p><ul><li><strong>Ctrl + c as Esc</strong></li></ul><p>If you did remap caps to ctrl as I told before its super confortable and fast to emulate Esc (which you need all the time). Just add the following line to your vim config file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d9510e8a9fccf126fb12d8cd4ef9fef5/href">https://medium.com/media/d9510e8a9fccf126fb12d8cd4ef9fef5/href</a></iframe><ul><li><strong>Copy to clipboard: the easy way</strong></li></ul><p>Usually you should type &quot;*y to copy the selection text to the clipboard, you can save a few weird strokes by adding the following and just press capital Y to copy (yank) the selected text(via visual mode).</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1dbc3fe2a55dabce29aa1919caf86fae/href">https://medium.com/media/1dbc3fe2a55dabce29aa1919caf86fae/href</a></iframe><ul><li><strong>Turn on and off highlight search matches</strong></li></ul><p>As you probably know you can search in a file by pressing / and typing something or by pressing * on a word. And navigate between matches by pressing n or N .</p><p>In vim there is no highlighting of the matching result so you should set it in your config file (in neovim comes by default)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9f87b151b7712a4ab2c0c7a6d9d7f89/href">https://medium.com/media/f9f87b151b7712a4ab2c0c7a6d9d7f89/href</a></iframe><p>But it can be annoying to have it highlighted all the time so you can add the following line to turn off the highlighting on press Enter.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8152126a1281c8b1f2e8ac56a7c3bd3a/href">https://medium.com/media/8152126a1281c8b1f2e8ac56a7c3bd3a/href</a></iframe><ul><li><strong>Highlight cursor line</strong></li></ul><p>Useful to quickly find the cursor line</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a06331c82e4f274f23e50f8cdb86a0db/href">https://medium.com/media/a06331c82e4f274f23e50f8cdb86a0db/href</a></iframe><ul><li><strong>Highlight Column</strong></li></ul><p>Useful for coding styles</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdf1452f5532f777de8ff2f4351779b0/href">https://medium.com/media/cdf1452f5532f777de8ff2f4351779b0/href</a></iframe><ul><li><strong>Move up and down in the file</strong></li></ul><p>We know that we can navigate between file lines by pressing any number and then gg , G to go to the file bottom, gg to go to the top and so on. But I found useful to show the row relative number to the cursor position because it makes easier to go to a specific line by pressing the showed number and j or k. to do it add the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/590cb2e386b1bad1334f79d41e4718fa/href">https://medium.com/media/590cb2e386b1bad1334f79d41e4718fa/href</a></iframe><ul><li><strong>Moving around between panes</strong></li></ul><p>I use to work with some splitted panes and its super easy to move around with the following configuration by holdingctrl and pressing any of the basic vim movements keys h/j/k/l.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a4f52bcf35e03f0064a8c024583315fc/href">https://medium.com/media/a4f52bcf35e03f0064a8c024583315fc/href</a></iframe><blockquote>Note: If you use tmux you should read <a href="https://teamgaslight.com/blog/vim-plus-tmux-a-perfect-match">this awesome post</a>, Its super useful to move between terminal panes the same as in you editor.</blockquote><ul><li><strong>Basic indentation</strong></li></ul><p>If you, like me, want to keep indentations on wrapping lines and add just to spaces on tab press add the following</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c83db670f2880d84e3dae748c3f6ff3f/href">https://medium.com/media/c83db670f2880d84e3dae748c3f6ff3f/href</a></iframe><ul><li><strong>Avoid backups and extra files creation</strong></li></ul><p>Vim tends to create extra files that can be annoying to clean even more if you are working in a project with non vim users. To avoid them and prevent vim for using extra memory add</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/762d6f1cb5c3774bbbfefaafeb50f8d5/href">https://medium.com/media/762d6f1cb5c3774bbbfefaafeb50f8d5/href</a></iframe><h3>Append</h3><p>Some other modules that I found interesting and I will write about it are:</p><ul><li><a href="https://medium.com/@jimeno0/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84">JS and React syntax highlight in vim</a></li><li><a href="https://medium.com/@jimeno0/eslint-and-prettier-in-vim-neovim-7e45f85cf8f9">Linter in vim</a></li><li><a href="https://medium.com/@jimeno0/search-in-files-and-content-in-vim-neovim-8c1bf74ad5e9">Search in file and folder</a>s</li><li><a href="https://medium.com/@jimeno0/snipets-in-vim-neovim-2ed9ab89befc">Snipets in vim</a></li></ul><p>Hope that you found something interesting that can help to increase your love for vim 🙃</p><p>🍻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e45ceaed119a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Search in files and content in vim / neovim]]></title>
            <link>https://medium.com/@jimeno0/search-in-files-and-content-in-vim-neovim-8c1bf74ad5e9?source=rss-97ba9f73fa86------2</link>
            <guid isPermaLink="false">https://medium.com/p/8c1bf74ad5e9</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Carlos P. Jimeno]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 21:03:53 GMT</pubDate>
            <atom:updated>2018-11-18T21:20:42.522Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*JZAp2NJ7RMWr6cGSygOrTw.png" /></figure><h3>TL/TR</h3><p>👋 This post is about to how to easily find files and folders in a project with two plugins and a little configuration to improve your experience with them.</p><p><em>Note: The config file in vim is located in </em><em>~./vimrc and the config file for neovim in </em><em>~/.config/nvim/init.vim.</em></p><h3>Find files in project</h3><p>Use your favourite plugin manager to install the ctrlp plugin , I love to use <a href="https://github.com/junegunn/vim-plug">Plug</a>:<br><em>In case you don’t have any plugin manager install Plug following their </em><a href="https://github.com/junegunn/vim-plug"><em>repo installation guide</em></a><em>.</em></p><p>I also add two custom configurations:</p><ul><li>Ignore folders in the search that are in the .gitignore (nobody wants to search inside node_modules 🙃).</li><li>Show hidden files: I want to be able to search files like .gitignore , .env and so on</li></ul><p>Your config file should look something like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0e6f1143d3570914b7f63e96d3a52c12/href">https://medium.com/media/0e6f1143d3570914b7f63e96d3a52c12/href</a></iframe><p>You should save your config file then type :so % to reload it and then type :PlugInstall to install the plugin.</p><h3>Search inside a project’s content</h3><p>To search content in a project I use the awesome <a href="https://github.com/dyng/ctrlsf.vim">ctrlsf plugin</a>.</p><p>You need <a href="https://beyondgrep.com/">ack</a> to use it so in case you dont have it its easy to install via hombrew by runing brew install ack in your terminal.</p><p>Use your favourite plugin manager to install the ctrlsf plugin , I love to use <a href="https://github.com/junegunn/vim-plug">Plug</a>.</p><p>There are plenty of options in the docs but I find really useful what follows:</p><ul><li>ctrl+f and f to open the search line and type what you want to search for</li><li>ctrl+f and n to search for matches of the word under the cursor</li><li>ctrl+f and p to search for the las search parten used in vim.</li></ul><p>Finally your config file should look something like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5c5bba384ac7d3a1bcccdcbf6fe33088/href">https://medium.com/media/5c5bba384ac7d3a1bcccdcbf6fe33088/href</a></iframe><p>You should save your config file then type :so % to reload it and then type :PlugInstall to install the plugin.</p><h3>Final thoughts</h3><p>I work as a frontend developer so if your are interested in react snippets and some others feel free to <a href="https://github.com/Jimeno0/dotfiles/blob/master/vim/vim/UltiSnips/javascript.snippets">check mines here</a> 🙃.</p><p>You are ready to go and try it 🚀! I hope it helps and you found something useful here.</p><p>In case you liked it this is part of a serie of articles I wrote about useful vim configurations. If you are interested you can check the others here:</p><ul><li><a href="https://medium.com/@jimeno0/some-vim-useful-tips-e45ceaed119a">Some vim useful tips🤓</a></li><li><a href="https://medium.com/@jimeno0/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84">JS and React syntax highlight in vim</a></li><li><a href="https://medium.com/@jimeno0/eslint-and-prettier-in-vim-neovim-7e45f85cf8f9">Linter in vim</a></li><li><a href="https://medium.com/@jimeno0/snipets-in-vim-neovim-2ed9ab89befc">Snipets in vim</a></li></ul><p>🍻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8c1bf74ad5e9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ESLint and Prettier in vim / neovim]]></title>
            <link>https://medium.com/@jimeno0/eslint-and-prettier-in-vim-neovim-7e45f85cf8f9?source=rss-97ba9f73fa86------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e45f85cf8f9</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Carlos P. Jimeno]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 20:56:26 GMT</pubDate>
            <atom:updated>2018-11-18T21:21:28.663Z</atom:updated>
            <content:encoded><![CDATA[<h3>Linting with ESLint and Prettier in vim / neovim</h3><p>This is part of a series of articles covering the different modules needed to configure vim for modern javascript apps development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*JZAp2NJ7RMWr6cGSygOrTw.png" /></figure><h3>TL;TR</h3><p>Setup <a href="https://eslint.org/">ESLint</a> as linter, <a href="https://prettier.io/">Prettier</a> as a code formatter and add <a href="https://github.com/w0rp/ale">ALE plugin</a> to your neovim/vim config file to use/pimp your linter using vim.</p><p>The config file in vim is located in ~./vimrc and the config file for neovim in ~/.config/nvim/init.vim. From now on I will refer to the config file as init.vim.</p><h3>ESLint</h3><ol><li>Add ESLint to your project:</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f9157ca4040c28873b17e4d2c9e0d587/href">https://medium.com/media/f9157ca4040c28873b17e4d2c9e0d587/href</a></iframe><p>2. Create your config ESLint file .eslintrc in the root of your project</p><h3>Prettier</h3><p>1. Use ESLint to run prettier</p><ul><li>Install packages</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/24671dd3012d87225318e07c997ff94a/href">https://medium.com/media/24671dd3012d87225318e07c997ff94a/href</a></iframe><ul><li>Set the .eslintrc configuration options</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/016c5293c1965ac5ec96d80152bce0f9/href">https://medium.com/media/016c5293c1965ac5ec96d80152bce0f9/href</a></iframe><p>2. Turn off ESLint formatting rules</p><ul><li>Install packages</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c523f2c09d3d4ffb1d84d830349be202/href">https://medium.com/media/c523f2c09d3d4ffb1d84d830349be202/href</a></iframe><ul><li>Add the config in .eslintrc</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18f25acf6428fe7a2a88715ef4b68ce1/href">https://medium.com/media/18f25acf6428fe7a2a88715ef4b68ce1/href</a></iframe><p>3. Your .eslintrc should look like:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/db39fa39bb10a3ecb8c2496a77d5b44c/href">https://medium.com/media/db39fa39bb10a3ecb8c2496a77d5b44c/href</a></iframe><p>4. You can add now your custom format rules to .prettierrc file in the root of your project, something like follows</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8471c21a5ecee1f52f5e120c7aa4047d/href">https://medium.com/media/8471c21a5ecee1f52f5e120c7aa4047d/href</a></iframe><h3>Vim config setup</h3><p>Use your favourite plugin manager to install <a href="https://github.com/w0rp/ale">ALE linter</a>, I love to use <a href="https://github.com/junegunn/vim-plug">Plug</a>:<br><em> In case you don’t have any plugin manager install Plug following their </em><a href="https://github.com/junegunn/vim-plug"><em>repo installation guide</em></a><em>.</em></p><p>Add the following to your init.vim:</p><ol><li>Add the plugging to our plugging manager</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/9080efe17763e5972ba7c65a02dd923f/href">https://medium.com/media/9080efe17763e5972ba7c65a02dd923f/href</a></iframe><p>2. Set ESLint as your plugging manager</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2488edf4fe57a0f22ffb898a54174a05/href">https://medium.com/media/2488edf4fe57a0f22ffb898a54174a05/href</a></iframe><p>3. Pimp your linter symbols</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/76ddc03168a526f53976515df72cc21e/href">https://medium.com/media/76ddc03168a526f53976515df72cc21e/href</a></iframe><p>4. Add the config to fix the file your are working on on save</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/192ad5ab0054482d082b979eb02abd86/href">https://medium.com/media/192ad5ab0054482d082b979eb02abd86/href</a></iframe><p>5. Your init.vim should look like</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ac07e66d8b71c6be1c18777acb78af3e/href">https://medium.com/media/ac07e66d8b71c6be1c18777acb78af3e/href</a></iframe><p>5. Inside init.vim type :so % to reload your vim config</p><p>6. Inside init.vim type:PlugInstall yo install your plugging</p><p>You are ready to go 🚀</p><h3>Final thoughts</h3><p>I work as a frontend developer so if your are interested in react snippets and some others feel free to <a href="https://github.com/Jimeno0/dotfiles/blob/master/vim/vim/UltiSnips/javascript.snippets">check mines here</a> 🙃.</p><p>You are ready to go and try it 🚀! I hope it helps and you found something useful here.</p><p>In case you liked it this is part of a serie of articles I wrote about useful vim configurations. If you are interested you can check the others here:</p><ul><li><a href="https://medium.com/@jimeno0/some-vim-useful-tips-e45ceaed119a">Some vim useful tips🤓</a></li><li><a href="https://medium.com/@jimeno0/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84">JS and React syntax highlight in vim</a></li><li><a href="https://medium.com/@jimeno0/snipets-in-vim-neovim-2ed9ab89befc">Snipets in vim</a></li><li><a href="https://medium.com/@jimeno0/search-in-files-and-content-in-vim-neovim-8c1bf74ad5e9">Search in file and folder</a>s</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e45f85cf8f9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Snipets in vim / neovim]]></title>
            <link>https://medium.com/@jimeno0/snipets-in-vim-neovim-2ed9ab89befc?source=rss-97ba9f73fa86------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ed9ab89befc</guid>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Carlos P. Jimeno]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 20:52:38 GMT</pubDate>
            <atom:updated>2018-11-18T21:18:25.909Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*JZAp2NJ7RMWr6cGSygOrTw.png" /></figure><h3>TL/TR</h3><p>I love snippets. They decrease my time typing code dramatically. This article will show an easy way to create your own and use them in vim / neovim.</p><h3>Setting up snippets packages</h3><p>I use the <a href="https://github.com/vim-scripts/UltiSnips">UltiSnips</a> plugin to create and use snippets in vim so we need to add it to our config file and also the <a href="https://github.com/honza/vim-snippets">vim-snippets</a> plugin.</p><ul><li><strong>To install them</strong> use your favourite plugin manager , I love to use <a href="https://github.com/junegunn/vim-plug">Plug</a>:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e46682ff389152d2275a66b695895d60/href">https://medium.com/media/e46682ff389152d2275a66b695895d60/href</a></iframe><p><em>Note1: The config file in vim is located in </em><em>~./vimrc and the config file for neovim in </em><em>~/.config/nvim/init.vim.</em></p><p><em>Note2: In case you don’t have any plugin manager, install Plug following their </em><a href="https://github.com/junegunn/vim-plug"><em>repo installation guide</em></a><em>.</em></p><ul><li><strong>Set your snippets location</strong></li></ul><p>You can set the snippets folder in your configuration file</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d3a235638b0948d47f404ed0c73bbd88/href">https://medium.com/media/d3a235638b0948d47f404ed0c73bbd88/href</a></iframe><ul><li><strong>Create your first snippet</strong></li></ul><p>Inside ~.vim/UltiSnips create a file named javascript.snippets (to use in javascript files) and add the following example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a77bf71bd08716b28d9da55d5de0c06c/href">https://medium.com/media/a77bf71bd08716b28d9da55d5de0c06c/href</a></iframe><p>The target is to:</p><ol><li>Type the snippet name</li><li>Hit tab to write the snippet</li><li>Hit tab again to jump to the next (2) location step and so on <em>(Also use</em><em>ctrl + </em><em>b to move steps backwards)</em></li></ol><ul><li><strong>Add the configuration to use</strong></li></ul><p>To use it the way described before add the following to your vim config file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/60c8b79b84a20b53c45f1b564a7d52ef/href">https://medium.com/media/60c8b79b84a20b53c45f1b564a7d52ef/href</a></iframe><ul><li>Finally your config file should look like:</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ea341f56afe15a59d273646774031386/href">https://medium.com/media/ea341f56afe15a59d273646774031386/href</a></iframe><p>You should save your config file then type :so % to reload it and then type :PlugInstall to install the plugin.</p><p>Now you can create a JS file, type i hit tab and type what you want in the first position and then hit tab again to jump to the next position.</p><h3><strong>Final thoughts</strong></h3><p>I work as a frontend developer so if your are interested in react snippets and some others feel free to <a href="https://github.com/Jimeno0/dotfiles/blob/master/vim/vim/UltiSnips/javascript.snippets">check mines here</a> 🙃.</p><p>You are ready to go and try it 🚀! I hope it helps and you found something useful here.</p><p>In case you liked it this is part of a serie of articles I wrote about useful vim configurations. If you are interested you can check the others here:</p><ul><li><a href="https://medium.com/@jimeno0/some-vim-useful-tips-e45ceaed119a">Some vim useful tips🤓</a></li><li><a href="https://medium.com/@jimeno0/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84">JS and React syntax highlight in vim</a></li><li><a href="https://medium.com/@jimeno0/eslint-and-prettier-in-vim-neovim-7e45f85cf8f9">Linter in vim</a></li><li><a href="https://medium.com/@jimeno0/search-in-files-and-content-in-vim-neovim-8c1bf74ad5e9">Search in file and folder</a>s</li></ul><p>🍻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ed9ab89befc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JS and React syntax highlight in vim / neovim]]></title>
            <link>https://itnext.io/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84?source=rss-97ba9f73fa86------2</link>
            <guid isPermaLink="false">https://medium.com/p/1167c1945c84</guid>
            <category><![CDATA[tools]]></category>
            <category><![CDATA[coding]]></category>
            <category><![CDATA[vim]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Carlos P. Jimeno]]></dc:creator>
            <pubDate>Sun, 18 Nov 2018 20:45:37 GMT</pubDate>
            <atom:updated>2018-11-25T12:36:47.046Z</atom:updated>
            <content:encoded><![CDATA[<p>This is part of a series of articles covering the different modules needed to configure vim to use in modern javascript apps development.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/256/1*JZAp2NJ7RMWr6cGSygOrTw.png" /></figure><h3>TL;TR</h3><p>Install plugins and configure vim to setup the proper syntax highlighting.</p><p>The config file in vim is located in ~./vimrc and the config file for neovim in ~/.config/nvim/init.vim. From now on I will refer to the config file as init.vim.</p><h3>Setting up the syntax highlighting</h3><p>Use your favourite plugin manager to install the following plugins , I love to use <a href="https://github.com/junegunn/vim-plug">Plug</a>:<br><em> In case you don’t have any plugin manager install Plug following their </em><a href="https://github.com/junegunn/vim-plug"><em>repo installation guide</em></a><em>.</em></p><p>Plugins to install:</p><ul><li><a href="https://github.com/mxw/vim-jsx">mxw/vim-jsx</a> : To highlight JSX</li><li><a href="https://github.com/pangloss/vim-javascript">pangloss/vim-javascript</a> : To highlight JS</li></ul><ol><li>Add the plugins to your init.vim</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/18b711f41aed1cced6f6206fbe079f21/href">https://medium.com/media/18b711f41aed1cced6f6206fbe079f21/href</a></iframe><p>2. Inside init.vim type :so % to reload your vim config</p><p>3. Inside init.vim type:PlugInstall yo install your plugging</p><h3>Setting up highlight theme</h3><p>You can choose your favorite color scheme from the awesome project <a href="https://vimcolors.com/">vimcolors</a>. You can choose your favorite there.</p><p>For this example, we are going to install the theme: minimalist. But you can choose any of them.</p><ol><li>Add the plugins to your init.vim</li></ol><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cebb717da037c9f0de31de6a14f232ce/href">https://medium.com/media/cebb717da037c9f0de31de6a14f232ce/href</a></iframe><p>2. Set the colorscheme your are using in your init.vim (in this case the minimalist theme)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ffd3c85ac47e2f769a8192d680e055dd/href">https://medium.com/media/ffd3c85ac47e2f769a8192d680e055dd/href</a></iframe><p>3. Some themes allow you to personalize some options (check their repos).5. Finally init.vim config file should looks like</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/375ade27c386d6b5f3ad087c0f3194c5/href">https://medium.com/media/375ade27c386d6b5f3ad087c0f3194c5/href</a></iframe><p>6. Inside init.vim type :so % to reload your vim config</p><p>7. Inside init.vim type:PlugInstall yo install your plugging</p><p>You are ready to roll! Open a project to check your new awesome syntax highlighting 🔥.</p><p>Hope you found it useful, you can check and stole my <a href="https://github.com/Jimeno0/dotfiles">dotfiles</a>.</p><p>In case you liked it this is part of a serie of articles I wrote about useful vim configurations. If you are interested you can check the others here:</p><ul><li><a href="https://medium.com/@jimeno0/some-vim-useful-tips-e45ceaed119a">Some vim useful tips🤓</a></li><li><a href="https://medium.com/@jimeno0/eslint-and-prettier-in-vim-neovim-7e45f85cf8f9">Linter in vim</a></li><li><a href="https://medium.com/@jimeno0/search-in-files-and-content-in-vim-neovim-8c1bf74ad5e9">Search in file and folder</a>s</li><li><a href="https://medium.com/@jimeno0/snipets-in-vim-neovim-2ed9ab89befc">Snipets in vim</a></li></ul><p>🍻</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1167c1945c84" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/js-and-react-syntax-highlight-in-vim-neovim-1167c1945c84">JS and React syntax highlight in vim / neovim</a> was originally published in <a href="https://itnext.io/">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>