Add split navigation shortcuts to neovim

inky
Elnu 2 years ago
parent dfdd19fbce
commit ce6094dd60

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

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

@ -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