Skip to main content

Timeline for Vim Stuck In Insert Mode

Current License: CC BY-SA 3.0

9 events
when toggle format what by license comment
Dec 5, 2019 at 23:36 review Suggested edits
Dec 6, 2019 at 2:04
Jan 31, 2018 at 9:22 review Suggested edits
Jan 31, 2018 at 13:26
Mar 5, 2014 at 20:19 comment added Dennis Williamson @PiotrDobrogost: See my answer to "How can I check in bash if a shell is running in interactive mode?"
Mar 5, 2014 at 20:01 comment added Piotr Dobrogost @DennisWilliamson You are right. What I meant to say is that there's probably sense to disable software flow control only in interactive shells. If this is true then subsequently it would make sense to find a way to tell if a shell is interactive and disable software flow control only in this case.
Mar 4, 2014 at 22:22 comment added Dennis Williamson @PiotrDobrogost: "When an interactive shell that is not a login shell is started, Bash reads and executes commands from ~/.bashrc, if that file exists." .bash_profile is only executed when Bash is a login shell. "So, typically, your ~/.bash_profile contains the line if [ -f ~/.bashrc ]; then . ~/.bashrc; fi"
Mar 4, 2014 at 22:14 comment added Piotr Dobrogost @DennisWilliamson Wouldn't .bash_profile be a better place? There's no need to turn it off in non-interactive shell, is it?
Jul 2, 2012 at 14:18 comment added Dennis Williamson That's not insert mode that's XOFF. You can disable software flow control by doing stty -ixon (add it to your ~/.bashrc). Then that keystroke will be available to be bound to something else. By default in Bash it's bound to forward-search-history (the opposite of Ctrl-r). Ctrl-q (Bash quoted-insert) will also be available.
Dec 22, 2011 at 8:55 history edited soandos CC BY-SA 3.0
added 30 characters in body
May 4, 2011 at 20:45 history answered bhaskar CC BY-SA 3.0