~kaction/config

be1a4e37ccf4a819b352142e5e0a94b40db45407 — Dmitry Bogatov 7 months ago 4393029
vim: configure snipMate

Yet another attempt to learn advanced editing features. Usually I can't
force myself learning names of snippets, but let's try again.
M nixpkgs/overlays.d/config.d/vim/default.nix => nixpkgs/overlays.d/config.d/vim/default.nix +4 -0
@@ 39,6 39,10 @@ in buildEnv {
      vim-nginx
      vim-gemini
      purescript-vim
      vim-snipmate
      vim-snippets
      vim-addon-mw-utils  # hidden dependency of vim-snipmate
      tlib
    ];
  in [ ./vim vim ] ++ plugins;
  meta = { priority = 3; };

M nixpkgs/overlays.d/config.d/vim/vim/share/vim/vim82/vimrc => nixpkgs/overlays.d/config.d/vim/vim/share/vim/vim82/vimrc +9 -0
@@ 82,3 82,12 @@ au BufNewFile,BufRead,BufWritePost *.gmi set columns=80
au BufNewFile,BufRead */mail/*/[0123456789]* setfiletype mail
au BufNewFile,BufRead syntax sync minlines=200 "slower but more correct highlighting
au BufWritePre * :silent !mkdir -p %:p:h

imap <Tab> <Plug>snipMateNextOrTrigger
smap <Tab> <Plug>snipMateNextOrTrigger
vmap <Tab> <Plug>snipMateVisual

imap <S-Tab> <Plug>snipMateBack
smap <S-Tab> <Plug>snipMateBack

imap <C-s> <Plug>snipMateShow