about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
Diffstat (limited to 'users')
-rw-r--r--users/wpcarro/tools/simple_vim/config.vim14
-rw-r--r--users/wpcarro/tools/simple_vim/default.nix10
2 files changed, 9 insertions, 15 deletions
diff --git a/users/wpcarro/tools/simple_vim/config.vim b/users/wpcarro/tools/simple_vim/config.vim
index ea40964ee803..6cc6729bc41e 100644
--- a/users/wpcarro/tools/simple_vim/config.vim
+++ b/users/wpcarro/tools/simple_vim/config.vim
@@ -48,13 +48,13 @@ nnoremap <C-l> :wincmd l<CR>
 " nnoremap <M-k> :wincmd k<CR>
 " nnoremap <M-l> :wincmd l<CR>
 
-" Use <Enter> instead of G to support:
-"        20<Enter> - to jump to line 20
-"       d20<Enter> - to delete from the current line until line 20
-"   <C-v>20<Enter> - to select from the current line until line 20
-nnoremap <Enter> G
-onoremap <Enter> G
-vnoremap <Enter> G
+" Use <CR> instead of G to support:
+"        20<CR> - to jump to line 20
+"       d20<CR> - to delete from the current line until line 20
+"   <C-v>20<CR> - to select from the current line until line 20
+nnoremap <CR> G
+onoremap <CR> G
+vnoremap <CR> G
 
 " Easily change modes on keyboards that don't have CapsLock mapped to <Esc>
 inoremap jk      <ESC>
diff --git a/users/wpcarro/tools/simple_vim/default.nix b/users/wpcarro/tools/simple_vim/default.nix
index 6631fdfff5da..01b1d5d3fe08 100644
--- a/users/wpcarro/tools/simple_vim/default.nix
+++ b/users/wpcarro/tools/simple_vim/default.nix
@@ -1,11 +1,5 @@
 { pkgs, ... }:
 
-let
-  configVim = builtins.path {
-    path = ./config.vim;
-    name = "config.vim";
-  };
-
-in pkgs.writeShellScriptBin "simple_vim" ''
-  ${pkgs.vim}/bin/vim -u ${configVim}
+pkgs.writeShellScriptBin "simple_vim" ''
+  ${pkgs.neovim}/bin/nvim -u ${./config.vim} $@
 ''