Skip to main content
added 450 characters in body
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40

Not every character sequences are acceptable for abbreviation (see: :h abbreviation).

In particularTo determine if you start witha sequence is supported the last character is important.

If the last character is a non-keyword character (e.g. <leader>) and end withusually a keyword character (e.g. aletter, a number or an underscore) then you can only have that one ending keyword character in the sequence is supported (e.g. 'anon-id orsequence). Example are: '#a#foo# is ok but, 'eafoo# or, 'e#abar##is not) since your

If the last character is a keyword character there are intwo types of sequence supported:

  1. The part before is only made of keyword characters (full-id sequence). Example are: foo, bar
  2. The part before is only made of non-keyword characters (end-id sequence). Example are: #a, #.#b

If the last character is a keyword you can't mix keyword and non-keyword on the first part. Example are: end-id\ae case.

Quoting the docRemark: youThe definition of what is a keyword character can either be configured using the iskeyword option (more information with :h 'iskeyword')

I could recommend you to either use the suffix approach:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#
ia e'\ é
ia ae\ æ

TheOr use the following answer could help you in your quest for a solutionthat propose to check the character before the abbreviation and delete it before inserting the abbreviation.

Not every character sequences are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (e.g. <leader>) and end with a keyword character (e.g. a) then you can only have that one ending keyword character in the sequence (e.g. 'a or '#a is ok but 'ea or 'e#ais not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest for a solution.

Not every character sequences are acceptable for abbreviation (see: :h abbreviation).

To determine if a sequence is supported the last character is important.

If the last character is a non-keyword character (usually a letter, a number or an underscore) the sequence is supported (non-id sequence). Example are: #foo#, foo#, bar##

If the last character is a keyword character there are two types of sequence supported:

  1. The part before is only made of keyword characters (full-id sequence). Example are: foo, bar
  2. The part before is only made of non-keyword characters (end-id sequence). Example are: #a, #.#b

If the last character is a keyword you can't mix keyword and non-keyword on the first part. Example are: \ae

Remark: The definition of what is a keyword character can be configured using the iskeyword option (more information with :h 'iskeyword')

I could recommend you to either use the suffix approach:

ia e'\ é
ia ae\ æ

Or use the following answer that propose to check the character before the abbreviation and delete it before inserting the abbreviation.

added 40 characters in body
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40

Not every character sequencesequences are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (likee.g. <leader>) and end with a keyword character (e.g.: ea) then you can only have that one ending keyword character in the sequence (e.g. 'e'a or \'e'#a is ok but 'ea isor 'e#ais not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest for a solution.

Not every character sequence are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (like <leader>) and end with a keyword (e.g.: e) you can only have that one ending keyword character (e.g. 'e or \'e is ok but 'ea is not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest for a solution.

Not every character sequences are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (e.g. <leader>) and end with a keyword character (e.g. a) then you can only have that one ending keyword character in the sequence (e.g. 'a or '#a is ok but 'ea or 'e#ais not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest for a solution.

added 246 characters in body
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40

Not every character sequence are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (like <leader>) and end with a keyword (e.g.: e) you can only have that one ending keyword character (e.g. 'e or \'e is ok but 'ea is not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest offor a solution.

Not every character sequence are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (like <leader>) and end with a keyword (e.g.: e) you can only have that one ending keyword character (e.g. 'e or \'e is ok but 'ea is not) since your are in the end-id case.

The following answer could help you in your quest of a solution.

Not every character sequence are acceptable for abbreviation (see: :h abbreviation).

In particular if you start with a non-keyword character (like <leader>) and end with a keyword (e.g.: e) you can only have that one ending keyword character (e.g. 'e or \'e is ok but 'ea is not) since your are in the end-id case.

Quoting the doc: you can either be:

  • full-id: Only contains keyword characters: foo, g3
  • end-id: Only contains non-keyword character but the last one: #i, ..f, $/7
  • non-id: Ends with non keyword character: def#, ..f#

The following answer could help you in your quest for a solution.

added 114 characters in body
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40
Loading
added 114 characters in body
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40
Loading
Source Link
Vivian De Smedt
  • 21k
  • 5
  • 22
  • 40
Loading