diff options
author | Urbain Vaes <urbain@vaes.uk> | 2016-10-05 12:56:25 +0100 |
---|---|---|
committer | Urbain Vaes <urbain@vaes.uk> | 2016-10-05 12:56:25 +0100 |
commit | 24424ccf7029f16798a6919c90a6d3a55ba1efd0 (patch) | |
tree | d3173c42bd465432a199fe792329b59399670ced /vim | |
parent | 9c63157ec8832994ffe4337b1bac91f77a907d0c (diff) |
[vim] Add keybindings for tabs
Diffstat (limited to 'vim')
-rw-r--r-- | vim/.vimrc | 16 |
1 files changed, 13 insertions, 3 deletions
@@ -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 |