Add split navigation shortcuts to neovim
This commit is contained in:
parent
dfdd19fbce
commit
ce6094dd60
3 changed files with 14 additions and 9 deletions
|
@ -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;
|
||||
};
|
||||
}
|
12
neovim/vimrc
Normal file
12
neovim/vimrc
Normal file
|
@ -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…
Add table
Reference in a new issue