New answers tagged find
1
vote
Capitalize a match in search and replace
For this specific task, an alternative approach is not to use a :substitute command at all!
:%norm!$Bgul
% # On every line,
norm! # Run the normal mode commands:
$ #...
Top 50 recent answers are included
Related Tags
find × 40regular-expression × 9
replace × 8
search × 7
substitute × 6
cursor-movement × 5
vimrc × 3
cursor-motions × 3
path × 3
command-line × 2
autocmd × 2
filesystem × 2
vimscript × 1
key-bindings × 1
buffers × 1
cut-copy-paste × 1
indentation × 1
autocompletion × 1
normal-mode × 1
highlight × 1
filetype × 1
filetype-tex × 1
split × 1
register × 1
comments × 1