diff options
author | William Carroll <wpcarro@gmail.com> | 2021-10-24T18·34-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-01-08T05·55+0000 |
commit | 4977ffacb017fe1ff5030eeeabe147ad242eb162 (patch) | |
tree | 4126446b555305d1b5e61179a1862406b58034c4 /users | |
parent | 54d3cc78dd2aaf10c6742f4703c9573bc53f661b (diff) |
fix(wpcarro/simple_vim): Debug simple_vim r/3553
No need to `mkDerivation` when I'm already using `writeShellScriptBin`. Also: prefer `<CR>` instead of `<Enter>` for consistency reasons. Change-Id: Ida8ecec0bd4e3e8c0fbb1ea34eefd61a0fefb4bc Reviewed-on: https://cl.tvl.fyi/c/depot/+/4797 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users')
-rw-r--r-- | users/wpcarro/tools/simple_vim/config.vim | 14 | ||||
-rw-r--r-- | users/wpcarro/tools/simple_vim/default.nix | 10 |
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} $@ '' |