Skip to content

VI/VIM - Search

date: 111025 search

:set [ic|noic]
sets globaly the search to ["ignore case"|"not ignore case"] (not to be or be a case sensitive searcher ;-) ).
%s/myMixedCaseWord/ReplacedWord/gi
let you search/replace with ignored case
/thIsISmyCaseInsensitVSearch\c

searchs for your term with ignored case

Links yolinux.com - tutorial - vim vim.wikia.com

date: 111229 search and replace

:$rs/searchterm/replaceterm/$a

$r (the range) can be: % - the whole file 23 - works on line 23 $ - nothing, only for current line.

$a (the argument) can be: g - whole line i - be case insensitive I - be case sensitive c - commit every change [y|n] $ - nothing, only first searchterm will be replaced.

tuxfiles.org

Translate to de es fr it pt ja

Trackbacks

No Trackbacks

Comments

Display comments as Linear | Threaded

No comments

Add Comment

Standard emoticons like :-) and ;-) are converted to images.
E-Mail addresses will not be displayed and will only be used for E-Mail notifications.
To leave a comment you must approve it via e-mail, which will be sent to your address after submission.

To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Markdown format allowed
Form options