<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Tips on emre.xyz | @delirehberi</title><link>https://blog.emre.xyz/tags/tips/</link><description>Recent content in Tips on emre.xyz | @delirehberi</description><generator>Hugo</generator><language>en-us</language><copyright>delirehberi</copyright><lastBuildDate>Thu, 11 Jul 2019 20:00:00 -0400</lastBuildDate><atom:link href="https://blog.emre.xyz/tags/tips/index.xml" rel="self" type="application/rss+xml"/><item><title>How to enable vim mode in bash</title><link>https://blog.emre.xyz/posts/how-to-enable-vim-mode-in-bash/</link><pubDate>Thu, 11 Jul 2019 20:00:00 -0400</pubDate><guid>https://blog.emre.xyz/posts/how-to-enable-vim-mode-in-bash/</guid><description>&lt;p>I didn&amp;rsquo;t know it is possible to enable vim mode, in bash before. I learned today and this feature is awesome.&lt;/p>
&lt;p>You can enable vim mode in the bash with only change a parameter in your .bashrc file, like that.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-fallback" data-lang="fallback">&lt;span style="display:flex;">&lt;span>set -o vi
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>That&amp;rsquo;s it. You can use bash with vim strokes.&lt;/p></description></item><item><title>Get current file path in vim</title><link>https://blog.emre.xyz/posts/get-current-file-path-in-vim/</link><pubDate>Mon, 08 Jul 2019 20:00:00 -0400</pubDate><guid>https://blog.emre.xyz/posts/get-current-file-path-in-vim/</guid><description>&lt;p>You can get file path in vim with % (percent) symbol. Sometimes you need to run a command with the current file path, for example &lt;code>git add filepath&lt;/code> or &lt;code>sh filepath&lt;/code>.&lt;/p>
&lt;p>You can add the current file to git with this command in vim:&lt;/p>
&lt;p>&lt;code>:!git add %&lt;/code>&lt;/p>
&lt;p>or you can run any file with this command:&lt;/p>
&lt;p>&lt;code>:!%:p&lt;/code>&lt;/p>
&lt;p>For example, you write a bash script and saved it. But you don&amp;rsquo;t want to close vim or you don&amp;rsquo;t want to go to another terminal screen. Just you need to write &lt;code>:!%:p&lt;/code> and vim run the file for you.&lt;/p></description></item></channel></rss>