Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make shortcut for :tabnew, :tabn, :tabp?

Tags:

In vim, I'd like to shorten :tabnew to :tn, :tabp to :th, :tabn to :tl somewhere in my .vimrc. Any idea how I would remap commands like this?

like image 415
tester Avatar asked Jul 09 '11 23:07

tester


People also ask

What is the shortcut key for open link in new tab?

Method 1: Ctrl+Click Simply press and hold the Ctrl key (Cmd on a Mac) and then click the link in your browser. The link will open in a new tab in the background.

How do I get a shortcut for history?

You can open the history page using this shortcut. Press Ctrl+H. History page will be opened. You can use this page to access the browser history of google chrome.


1 Answers

Use cabbrev:

ca tn tabnew
ca th tabp
ca tl tabn
like image 58
Sam Ruby Avatar answered Sep 21 '22 20:09

Sam Ruby