From dc467108fabc366f114e7803478f60808ab109e5 Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Mon, 11 Sep 2017 22:53:25 +0200 Subject: [PATCH] shell/vim: change keyboard mappings --- shell.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/shell.nix b/shell.nix index 1dca33c..15c8d17 100644 --- a/shell.nix +++ b/shell.nix @@ -45,6 +45,10 @@ in pkgs.stdenv.mkDerivation { " leader let mapleader = ',' + " save on ctrl-s + nnoremap :w + inoremap :wa + set hidden syntax on set hlsearch @@ -57,8 +61,15 @@ in pkgs.stdenv.mkDerivation { imap hhh set scroll=11 + " new scroll mappings + noremap + noremap + noremap :tabn noremap :tabp + " TODO: get tab movement working with ctrl-alt-{n,p} + noremap :tabm +1 + noremap :tabm -1 let g:ctrlp_map = '' let g:ctrlp_custom_ignore = { \ 'dir': '\v[\/]\.(git|hg|svn|)$$',