Commit c65eb747 authored by Pallav Agarwal's avatar Pallav Agarwal

Tips added, social integration

parent f1e0fc17
......@@ -13,6 +13,9 @@
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -62,6 +65,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -140,7 +151,13 @@ But what makes IITK special is that even first years are part of the team. In ro
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
......@@ -13,6 +13,9 @@
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -58,6 +61,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -145,7 +156,13 @@ be as perfect as other linux package managers.</p>
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
<title>Using Mouse with VIM in the terminal - VARSTACK</title>
<meta charset="utf-8"/>
<link href='http://fonts.googleapis.com/css?family=Courgette' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Lato' rel='stylesheet' type='text/css'>
<link href="/css/bootstrap.css" rel="stylesheet">
<link href="/css/highlighting.css" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<script src="/js/jquery-1.11.3.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<div class="container">
<div class="row" id="menu">
<div class="table_this" id="tableRow">
<div class="col-sm-3 vcenter" id="site_title"><a href="/" style="color:black;">VARSTACK</a></div>
<div class="col-sm-6 vcenter">
<div class="row" id="top_menu">
<ul class="nav nav-pills">
<li class="active" id="blog"><a class="color_change" href="/">Blog</a></li>
<li id="tips"><a class="color_change" href="/tips/">Tips</a></li>
<li id="algo"><a class="color_change" href="/algo/">Behind The Scenes</a></li>
<li id="about"><a class="color_change" href="/about_me/">About Me</a></li>
</ul>
</div>
</div>
<div class="col-sm-3 vcenter">
<div class="row">
<form action="/search/" id='search-form'>
<input id="search-box" type="text" name="query" placeholder="Search..">
</form>
</div>
</div>
</div>
</div>
<div class="row" id="content">
<div class="col-sm-3" id="recent">
<h4>RECENT POSTS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/26/Linuxbrew/" class="color_change">Package Management without root access -...</a>
</li>
<li>
<a href="/2015/06/18/IIT-Kanpur/" class="color_change">IIT Kanpur: The First Year</a>
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
<br />
<h3>Using Mouse with VIM in the terminal</h3>
<hr />
<div class="row text-justify" id="content-holder">
<p>Just when you thought vim couldn't surprise you
anymore, vim strikes again.
As it turns out, vim supports mouse integration even
in the terminal. Not only that, the support is mind
blowingly simple and amazing. You can move your cursor,
select text and even resize your panes in a split screen.</p>
<p>Most websites just say to use
<code>set mouse=a</code> in your <code>.vimrc</code> to add mouse support to
your vim. However, this enables mouse in all modes and I
found that it can get very irritating if mouse gets moved
during typing in insert mode. Luckily vim also supports
selective usage of the mouse.</p>
<pre><code>a = all
n = normal mode
v = visual mode
i = insert mode
</code></pre>
<p>There are other options too (check using <code>help mouse</code>).
I found that using:</p>
<p><code>set mouse=nv</code></p>
<p>(for normal and visual, but not insert mode) works best for me.</p>
</div>
</div>
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
var disqus_shortname = 'varstack';
/* * * DON'T EDIT BELOW THIS LINE * * */
(function() {
var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js';
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
})();
</script>
<noscript>Please enable JavaScript to view the <a href="https://disqus.com/?ref_noscript" rel="nofollow">comments powered by Disqus.</a></noscript>
</div>
<div class="col-sm-2">
</div>
</div>
</div>
<div class="modal fade" id="imagemodal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
<span class="sr-only">Close</span>
</button>
<h4 class="modal-title" id="myModalLabel">
Image Preview
</h4>
</div>
<div class="modal-body">
<img src="" id="imagepreview" style="max-height: 100%; max-width: 100%;">
</div>
</div>
</div>
</div>
......@@ -15,6 +15,9 @@
<script src="/js/about.js" ></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -60,6 +63,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -116,7 +127,13 @@ I had trouble finding the answers to.</p>
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
......@@ -13,6 +13,9 @@
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -58,6 +61,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -163,14 +174,19 @@ a weight score) and sort the rest.</p>
the tags that were generated, in your browser's developer tools.
If you want to implement something like this on your own blog,
or website, you can do so (the source code for everything is public on
github). Although it would be nice if you gave me credit.</p>
<a href="http://github.com/pallavagarwal07">github</a>). Although it would be nice if you gave me credit.</p>
<p><br /><br />
<br /><br /></p>
<p><br /></p>
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
......@@ -13,6 +13,9 @@
<script src="/js/SmoothScroll.js"></script>
<script src="/js/script.js"></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -62,6 +65,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -78,7 +89,13 @@
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
......@@ -17,6 +17,9 @@
<script src="/js/search.js" ></script>
<script type="text/javascript">var switchTo5x=true;</script>
<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "7839e2af-f9d1-4f68-9304-dcf13d3352ea", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
......@@ -62,6 +65,14 @@
</li>
</ul>
<h4>RECENT TIPS</h4>
<ul class="nav nav-pills nav-stacked">
<li>
<a href="/2015/06/30/Mouse-with-vim/" class="color_change">Using Mouse with VIM in the...</a>
</li>
</ul>
</div>
<div class="col-sm-7">
<div class="row" id="data">
......@@ -70,6 +81,22 @@
<hr />
<div class="row text-justify" id="content-holder">
<div class="post">
<a href="/2015/06/30/Mouse-with-vim/" class='shead'>
Using Mouse with VIM in the terminal
</a>
<br />
<div class="excerpt">
Just when you thought vim couldn't surprise you anymore, vim strikes again. As it turns out, vim supports mouse integration even in the terminal. Not.......other options too (check using help mouse). I found that using: set mouse=nv (for normal and visual, but not insert mode) works best for me.
</div>
<br />
<div class='tags'>
mouse:8, mode:6, vim:5, vim strikes:1, vim couldn:1, split screen:1, mouse support:1, mouse nv:1, mouse integration:1, mouse a:1, mode v:1, mode i:1, mind blowingly:1,
</div>
</div>
<div class="post">
<a href="/2015/06/26/Linuxbrew/" class='shead'>
Package Management without root access - An intro to LinuxBrew
......@@ -105,7 +132,13 @@
</div>
</div>
<hr />
<hr /><br />
<span class='st_sharethis_large' displayText='ShareThis'></span>
<span class='st_facebook_large' displayText='Facebook'></span>
<span class='st_twitter_large' displayText='Tweet'></span>
<span class='st_googleplus_large' displayText='Google +'></span>
<span class='st_linkedin_large' displayText='LinkedIn'></span>
<span class='st_pinterest_large' displayText='Pinterest'></span>
<div id="disqus_thread"></div>
<script type="text/javascript">
/* * * CONFIGURATION VARIABLES * * */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment