Skip to content

Instantly share code, notes, and snippets.

@barn
Created May 30, 2012 23:56
Show Gist options
  • Save barn/2839654 to your computer and use it in GitHub Desktop.
Save barn/2839654 to your computer and use it in GitHub Desktop.
tabs and window pieces from my .vimrc
" remap leader to ,
let mapleader = ","
" dealing with tabs, as in workspaces, not CTRL-I
" Kinda dirty with the CTRL-V magic to get the shift-alt-left/right here.
nnoremap <silent>^[[1;10C :tabnext<CR>
nnoremap <silent>^[[1;10D :tabprevious<CR>
inoremap <silent>^[[1;10C <ESC>:tabnext<CR>
inoremap <silent>^[[1;10D <ESC>:tabprevious<CR>
vnoremap <silent>^[[1;10C <ESC>:tabnext<CR>
vnoremap <silent>^[[1;10D <ESC>:tabprevious<CR>
nnoremap <silent><leader>tn :tabnew<CR>
nnoremap <silent><leader>tk :tabclose<CR>
" From http://stackoverflow.com/questions/8354826/change-fugitives-gstatus-window-height
" Make the preview window bigger than a postage stamp
set previewheight=22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment