mcchrish / nnn.vim

File manager for vim/neovim powered by n³
BSD 2-Clause "Simplified" License
646 stars 25 forks source link

Always start terminal-mode for vim #143

Closed mcchrish closed 3 years ago

mcchrish commented 3 years ago

startinsert does not work in vim terminal-mode. Simulate the behavior by sending 'i' key to the buffer.

N-R-K commented 3 years ago

startinsert does not work in vim terminal-mode.

Could you explain this a bit? It seems to be working fine for me.

mcchrish commented 3 years ago

When navigating to the explorer window, it does not start in insert mode/terminal mode. Instead, it start in "terminal-normal mode".

According to the vim docs startinsert is ineffective in terminal buffers.

mcchrish commented 3 years ago

When opening a file and then navigating back, it works fine. But if you try to switch back and forth to it, you'll see that it's in terminal-normal mode.

N-R-K commented 3 years ago

When opening a file and then navigating back, it works fine. But if you try to switch back and forth to it, you'll see that it's in terminal-normal mode.

Switch back and forth via <C-w>l <C-w>h ? Or are you switching back and forth via some other means.

mcchrish commented 3 years ago

Switch back and forth via <C-w>l <C-w>h ?

Yes.

N-R-K commented 3 years ago

Switch back and forth via <C-w>l <C-w>h ?

Yes.

Hmm, weird then. I'm using the same and it works okay on my end.