summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-10-05 12:56:25 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-10-05 12:56:25 +0100
commit24424ccf7029f16798a6919c90a6d3a55ba1efd0 (patch)
treed3173c42bd465432a199fe792329b59399670ced
parent9c63157ec8832994ffe4337b1bac91f77a907d0c (diff)
[vim] Add keybindings for tabs
-rw-r--r--vim/.vimrc16
1 files changed, 13 insertions, 3 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 3f41edc..3ffe129 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -268,7 +268,14 @@ endif
nnoremap <Leader>w :update<cr>
nnoremap <Leader>q :q!<cr>
nnoremap <Leader>d :bd!<cr>
-nnoremap <Leader>n :tabnew<cr>
+
+nnoremap <Leader>tn :tabnew<cr>
+nnoremap <Leader>te :tabedit
+nnoremap <Leader>th :-tabmove<cr>
+nnoremap <Leader>tl :+tabmove<cr>
+nnoremap <Leader>tm :tabmove
+nnoremap <Leader>t0 :tabmove 0<cr>
+nnoremap <Leader>t$ :tabmove<cr>
nnoremap cqo :copen<cr>
nnoremap cqc :cclose<cr>
@@ -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