summaryrefslogtreecommitdiffstats
path: root/tv/5pkgs/vim/showsyntax.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tv/5pkgs/vim/showsyntax.nix')
-rw-r--r--tv/5pkgs/vim/showsyntax.nix26
1 files changed, 0 insertions, 26 deletions
diff --git a/tv/5pkgs/vim/showsyntax.nix b/tv/5pkgs/vim/showsyntax.nix
deleted file mode 100644
index c27dd0447..000000000
--- a/tv/5pkgs/vim/showsyntax.nix
+++ /dev/null
@@ -1,26 +0,0 @@
-{ pkgs }:
-
-pkgs.tv.vim.makePlugin (pkgs.writeTextFile (let
- name = "showsyntax";
-in {
- name = "vim-plugin-${name}-1.0.0";
- destination = "/plugin/${name}.vim";
- text = /* vim */ ''
- if exists('g:loaded_showsyntax')
- finish
- endif
- let g:loaded_showsyntax = 0
-
- fu! ShowSyntax()
- let id = synID(line("."), col("."), 1)
- let name = synIDattr(id, "name")
- let transName = synIDattr(synIDtrans(id),"name")
- if name != transName
- let name .= " (" . transName . ")"
- endif
- echo "Syntax: " . name
- endfu
-
- command! -n=0 -bar ShowSyntax :call ShowSyntax()
- '';
-}))