Disable autoindent in visual block insert mode
This commit is contained in:
parent
1b4dd49b1d
commit
7f06191c9f
6 changed files with 24 additions and 7 deletions
|
@ -90,6 +90,10 @@ impl VimState {
|
|||
)
|
||||
}
|
||||
|
||||
pub fn should_autoindent(&self) -> bool {
|
||||
!(self.mode == Mode::Insert && self.last_mode == Mode::VisualBlock)
|
||||
}
|
||||
|
||||
pub fn clip_at_line_ends(&self) -> bool {
|
||||
match self.mode {
|
||||
Mode::Insert | Mode::Visual | Mode::VisualLine | Mode::VisualBlock => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue