Add split navigation shortcuts to neovim

inky
Elnu 2 years ago
parent dfdd19fbce
commit ce6094dd60

@ -5,7 +5,7 @@ let
in
{
imports = [
../neovim.nix
../neovim
../ranger.nix
../fcitx5
../picom.nix

@ -7,13 +7,6 @@
vimAlias = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [ vim-nix ];
extraConfig = ''
" Temporary configuration for editing Nix files
syntax on
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
'';
extraConfig = builtins.readFile ./vimrc;
};
}

@ -0,0 +1,12 @@
" Temporary configuration for editing Nix files
syntax on
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
" Shortcutting split navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
Loading…
Cancel
Save