Merge pull request #687 from zed-industries/vim-word-and-line-movement
Add word and line movement in vim normal mode
This commit is contained in:
commit
c62a3ea672
10 changed files with 766 additions and 278 deletions
|
@ -275,6 +275,16 @@ pub enum CharKind {
|
|||
Word,
|
||||
}
|
||||
|
||||
impl CharKind {
|
||||
pub fn coerce_punctuation(self, treat_punctuation_as_word: bool) -> Self {
|
||||
if treat_punctuation_as_word && self == CharKind::Punctuation {
|
||||
CharKind::Word
|
||||
} else {
|
||||
self
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Buffer {
|
||||
pub fn new<T: Into<Arc<str>>>(
|
||||
replica_id: ReplicaId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue