Working with tabs in vi
:ls shows list of open tabs :tabedit {file} edit specified file in a new tab :tabfind {file} open a new tab with filename given, searching the 'path' to find it :tabclose close current tab :tabclose {i} close i-th tab :tabonly close all other tabs (show only the current tab)
.vimrc
set t_Co=256 if has("syntax") syntax on endif set novisualbell set hlsearch colorscheme cobalt2 set nocompatible filetype off set rtp+=~/.vim/bundle/vundle call vundle#rc() Bundle 'gmarik/vundle' Bundle 'majutsushi/tagbar' Bundle 'scrooloose/nerdtree' Bundle 'itchyny/lightline' Bundle 'tpope/vim-surround' Bundle 'mattn/gist-vim' Bundle 'mattn/webapi-vim' Bundle 'gertjanreynaert/cobalt2-vim-theme' Bundle 'Valloric/YouCompleteMe' let g:lightline = { \ 'colorcheme': 'default', \ } set laststatus=2 filetype plugin indent on nmap :TagbarToggle nmap :NERDTree map :tabn map :tabp map :tabnew map :tabclose nnoremap "=strftime("%c")P nmap "=strftime("%c")P inoremap =strftime("%c")