I like working with tabs in Vim. It is a quite handy feature. But the navigation between tabs is not easy. It requires to be in command mode and type commands. It is certainly not a quick way and specially if you are jumping between tabs frequently you will soon get tired typing the commands. So I mapped the F7 and F8 keys to go to previous and next tabs respectively. Basically one can map any two keys of his choice to do that. Here is what I added in my vimrc file:
map <F7> :tabp<Enter>
map <F8> :tabn<Enter>
imap <F7> <Esc>:tabp<Enter>
imap <F8> <Esc>:tabn<Enter>
I used both map and imap commands because one works in Ubuntu Linux but not when I use iTerm in Mac OS X and vice versa.
Thursday, June 30, 2011
Friday, June 24, 2011
I am very excited to know that type 2 diabetes can be reversed at early stage and that too with an inexpensive method: controlled diet! A recent research revealed that. Great works researchers! I hope they will find a cure for old patients too. I hate diabetes because, as the article say, it is a life sentence. I would very much like to see this change. If controlled diet is the cure then it is the best solution that can ever be found. Not only will it cure millions of diabetic people but also it will reduce our habit of overeating and wasting food. The poor and starved people will be directly or indirectly benefited by that. The world would be a better place.