From cfb756c7b10408d1de5dfc5c4eb7742b10ee4f55 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 16 Feb 2019 19:29:25 +0100 Subject: tv vim: add todoComment --- tv/2configs/vim.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tv/2configs/vim.nix') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 9942ff65..20e1d650 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -151,7 +151,7 @@ let { setlocal foldmethod=syntax ''; "/syntax/todo.vim".text = '' - syn match Comment /#.*/ + syn match todoComment /#.*/ syn match todoDate /^[1-9]\S*/ \ nextgroup=todoSummary @@ -173,6 +173,7 @@ let { syn sync minlines=1000 + hi link todoComment Comment hi todoDate ctermfg=255 hi todoSummary ctermfg=229 hi todoBlock ctermfg=248 -- cgit v1.2.3 From fc1e69f9d13e28e3bceb8bfd1733b87cc6e57174 Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 16 Feb 2019 19:29:40 +0100 Subject: tv vim: add xmodmap --- tv/2configs/vim.nix | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tv/2configs/vim.nix') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 20e1d650..2dd2e742 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -347,6 +347,7 @@ let { (writerName ''\([^"]*\.\)\?vimrc'') ]; xdefaults = {}; + xmodmap = {}; }))} " Clear syntax that interferes with nixINSIDE_DOLLAR_CURLY. @@ -392,6 +393,9 @@ let { \ matchgroup=sedSemicolon end=";\|$" \ contains=sedWhitespace ''; + "/syntax/xmodmap.vim".text = '' + syn match xmodmapComment /^\s*!.*/ + ''; })) ]; -- cgit v1.2.3 From 6da86a30a99aed3819af07e2ecb781c17669411c Mon Sep 17 00:00:00 2001 From: tv Date: Sat, 16 Feb 2019 19:30:37 +0100 Subject: tv vim: map :ShowSyntax --- tv/2configs/vim.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tv/2configs/vim.nix') diff --git a/tv/2configs/vim.nix b/tv/2configs/vim.nix index 2dd2e742..a45e040e 100644 --- a/tv/2configs/vim.nix +++ b/tv/2configs/vim.nix @@ -490,6 +490,8 @@ let { inoremap :tabp inoremap :tabn + noremap :ShowSyntax + " noremap Oa | noremap! Oa noremap Ob | noremap! Ob -- cgit v1.2.3