" <Leader>$n to move to tab$n, $n in [1;9]
let tabnum = 1
while tabnum < 10
execute 'nnoremap <silent> <Leader>'.tabnum tabnum.'gt'
let tabnum = tabnum + 1
endwhile
nnoremap <silent> <Leader>0 :tablast<CR>
nnoremap <silent> <Leader>t :tabnew<CR>
nnoremap <silent> <Leader>w :tabclose<CR>