This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:%s/foo/bar/g | |
Find each occurrence of 'foo', and replace it with 'bar'. | |
:%s/foo/bar/gc | |
Change each 'foo' to 'bar', but ask for confirmation first. | |
:%s/\<foo\>/bar/gc | |
Change only whole words exactly matching 'foo' to 'bar'; ask for confirmation. | |
:%s/foo/bar/gci |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# [SNIPPET_NAME: Lookup website] | |
# [SNIPPET_CATEGORIES: GIO] | |
# [SNIPPET_DESCRIPTION: Lookup a website and make a connection] | |
# [SNIPPET_AUTHOR: Andrew Breiner <[email protected]>] | |
# [SNIPPET_LICENSE: GPL] | |
# [SNIPPET_DOCS: http://www.pygtk.org/docs/pygobject/gio-class-reference.html] | |
# This example was taken from an example done in the Vala programming |