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/gilet you search/replace with ignored case
/thIsISmyCaseInsensitVSearch\csearchs 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
Kommentare
Ansicht der Kommentare: Linear | Verschachtelt