简体   繁体   中英

Open another tab from within Vim

In Vim, if I wish to open another tab, I am currently write-quitting out of all of my documents, pressing up on the terminal and then adding the location of the new file I wish to open onto the end of the -p command. This is less than ideal.

What is the command to open a new tab from within Vim?

The command is :tabnew . Check the syntax on the link below for more info.

http://www.linux.com/learn/tutorials/442422-vim-tips-using-tabs

My .vimrc for tab navigation:

nmap ,<C-t> :tabnew<cr>  
imap ,<C-t> <ESC>:tabnew<cr>  
map <C-J> :bnext<CR>  
map <C-K> :bprev<CR>  
map <C-L> :tabn<CR>  
map <C-H> :tabp<CR>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM