Comments on: Cisco config syntax highlighting in Gvim /2008/06/08/cisco-config-syntax-highlighting-in-gvim A collection of note-to-self's Sun, 24 Mar 2019 23:04:45 +0000 hourly 1 https://wordpress.org/?v=5.1.1 By: Sam Garcia /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-261416 Thu, 16 Nov 2017 16:35:56 +0000 http://blog.dest-unreach.be/?p=24#comment-261416 Hey, thanks for the quick response. Here is an example for the class-maps, see below. I’d like to fold them in a similar manner to how you folded the interfaces. I just made a copy of the interface code and changed the keywords to “class-maps”

class-map match-any DSCP_Trusted_Hosts
description Marking Class for Hosts with Trusted Markings
match access-group name DSCP_Trusted_Hosts

]]>
By: Niobos /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-261415 Wed, 15 Nov 2017 19:41:57 +0000 http://blog.dest-unreach.be/?p=24#comment-261415 Sam,

Can you post more information about your error. Does it say on what line of what file the error occurred? What do you mean by “your interface line”?

]]>
By: Sam Garcia /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-261414 Wed, 15 Nov 2017 19:29:04 +0000 http://blog.dest-unreach.be/?p=24#comment-261414 I have a large number of router configs that have class maps. I tried to copy your interface line to fold the class-maps. I keep getting an E475 error “invalid argument” Any help would be greatly appreciated.

thank you

Sam

]]>
By: VP /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-120131 Thu, 20 Dec 2012 13:22:10 +0000 http://blog.dest-unreach.be/?p=24#comment-120131 Not verse with systems, I did a small test.
Removed javascript from C:\Program Files (x86)\Vim\vim72\syntax
And Java’s code highlight stopped working.
Then again when I copied the file back, Javascript highlight started working.

This ensures that Gvim is referring this path only.
Still not working.

]]>
By: Niobos /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-119952 Wed, 19 Dec 2012 13:20:22 +0000 http://blog.dest-unreach.be/?p=24#comment-119952 VP,

You normally put your own config-files in your own path, not in the system path (although that should work as well). Have you tried putting them in your user-directory (http://agateau.com/2007/10/04/note-to-self-path-to-vim-files-on-windows/ might help in finding it).

]]>
By: VP /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-119940 Wed, 19 Dec 2012 12:22:54 +0000 http://blog.dest-unreach.be/?p=24#comment-119940 Wondering why its not working for me?

I tried other syntax highlights like Javascript, and they are working.

I have created ciscoconfig.vim at this path –> C:\Program Files (x86)\Vim\vim72\syntax

Nothing happens when give command :set ft=ciscoconfig.

Please help

]]>
By: Zoly /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-2215 Mon, 29 Nov 2010 15:36:11 +0000 http://blog.dest-unreach.be/?p=24#comment-2215 I work on a syntax highlighter for blog posts, same thing –> none found on Internet yet. Took a look in your code for the IP address Regex. Thanks!

]]>
By: Niobos /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-645 Mon, 22 Sep 2008 15:27:25 +0000 http://blog.dest-unreach.be/?p=24#comment-645 Post Update: added folding of class-map’s and policy-map’s

]]>
By: Niobos /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-494 Wed, 10 Sep 2008 18:37:18 +0000 http://blog.dest-unreach.be/?p=24#comment-494 The syntax file should work for both vim and gvim, although I only tested it in gvim.

You should have received an email to arrange for the config file.

]]>
By: Broeisi /2008/06/08/cisco-config-syntax-highlighting-in-gvim/comment-page-1#comment-488 Wed, 10 Sep 2008 07:40:46 +0000 http://blog.dest-unreach.be/?p=24#comment-488 Niobos,

I will send you a piece of a config file with class/policy maps.
Better… if you want I can sent you a whole config and that way you (and I :)) can color the whole cisco config.

I was about the learn how to do syntax highlighting in vim, because lots of colleagues wanted such syntax highlighting.

Sent me your email at my email address please..

That way we can communicate better.

P.S. the “zR” didn’t help….. but is this syntax file for vim or gvim?… I understand that there is a slight difference between a syntax file for the two.

]]>