Trying to remove newlines with a regular expression (not shift-j). I have one vim install where
:g/conf/s/\n//
works as intended, removing a newline from all lines containing 'conf'.
I have a second install where the same command has no obvious effect at all, other than highlighting the last character in the line.
Is there something that I can look for in the configurations to find out why one install is working as expected and one isn't?
Both installs are Linux, vim 7.4, 2013-08-10 build.
ignorecase
setting differs between the two? (:se ic?
).vimrc
and$HOME
? You can get those values with:echo $MYVIMRC
and:echo $HOME
.