Reply to message «Re: How to delete sentences starting with a lower case 
letter?», 
sent 21:45:20 14 November 2010, Sunday
by AMDx64BT:

> It is possible using this:
> :v/^\u/d
> 
> But it deletes sentences beginning with capital letters with accents
> (french, german). Do you know a way without deleting capital strange
> letters?
This works with lines, not with sentences. If you want to delete lines which 
start with lower case letters, then you should use

    :%g/^./let fl=matchstr(getline('.'), '.') | if tolower(fl)==#fl | d | endif
. Using `tolower(fl)==#fl' is the only way to distinguish between arbitrary 
upper and lower case letters, if you want to use a regular expression, look at 
perl. Here is an example for which Tim Chase's answer does not work:
    :let fl="А" " = "\u0410"
    :echo fl=~#'[[:upper:]]' fl=~#'\u' fl==#toupper(fl)
    0 0 1

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to