From 24424ccf7029f16798a6919c90a6d3a55ba1efd0 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 5 Oct 2016 12:56:25 +0100 Subject: [vim] Add keybindings for tabs --- vim/.vimrc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'vim/.vimrc') diff --git a/vim/.vimrc b/vim/.vimrc index 3f41edc..3ffe129 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -268,7 +268,14 @@ endif nnoremap w :update nnoremap q :q! nnoremap d :bd! -nnoremap n :tabnew + +nnoremap tn :tabnew +nnoremap te :tabedit +nnoremap th :-tabmove +nnoremap tl :+tabmove +nnoremap tm :tabmove +nnoremap t0 :tabmove 0 +nnoremap t$ :tabmove nnoremap cqo :copen nnoremap cqc :cclose @@ -304,7 +311,10 @@ augroup vimrc au BufNewFile,Bufread /tmp/mutt-* setlocal tw=72 au BufNewFile,BufRead *.geo setf gmsh au BufNewFile,BufRead *.pde setf freefem - au FileType gmsh set makeprg=gmsh\ % + au BufNewFile,BufRead *.plt setf gnuplot + au FileType gmsh setlocal makeprg=gmsh\ % + au FileType gnuplot setlocal makeprg=gnuplot\ % + au FileType gnuplot setlocal commentstring=#%s au FileType freefem comp freefem - au FileType dirvish set relativenumber + au FileType dirvish setlocal relativenumber augroup END -- cgit v1.2.3