I have been using neovim for a long time and I have been using Ctrl + s to save and Ctrl + q to quit.  nmap &lt;c-s&gt; :w&lt;CR&gt; imap &lt;c-s&gt; &lt;Esc&gt;:w&lt;CR&gt;a  nmap &lt;c-q&gt; :q&lt;CR&gt; imap &lt;c-q&gt; &lt;Esc&gt;:q&lt;CR&gt;   Due to the unexpected behavior of nvim with coc I switched to vim. It's using the same configuration but Ctrl + s freezes the editor and Ctrl + q is required to unfreeze it. I'm using Simple Terminal and it does not freeze for Ctrl + s.  NVIM v0.4.2 VIM - Vi IMproved 8.1
I have two different machines (home and work) running Ubuntu 18.04. Last night vim froze at home. I was in insert mode and typing and went to save (esc :w) and nothing happened. The status bar still reads -- INSERT --, the cursor is still blinking where it was. I was stuck. I couldn't find a way out. I couldn't type (nothing happened when I type), I couldn't move around (the up and down arrows did nothing). It was stuck in insert mode with the cursor blinking where it was.   I was definitely multitasking and probably hit some other keys in there, but I don't know what keys. It was late, though, so I closed the terminal window and tried again (I was entering a git commit message). It happened again partway through my typing so I switched to git commit -m "don't need an editor for this" instead. And then I shut down my computer and stopped working.  I figured I was just tired, but then it happened to me today at work on a different laptop altogether. Again I was multitasking and can't swear I didn't type any bizarro key sequence but if I did it was accidental. And other tabs in the same terminal aren't frozen.   I'm used to getting trapped in visual mode in vim. That's a trick I've learned. But stuck in insert mode? Any ideas on what I might've done and how to get out of it?   Per a comment suggestion I tried looking at .viminfo but the only .viminfo I see is owned exclusively by root and only appears to show things I would have edited with sudo:   # Input Line History (newest to oldest):  # Debug Line History (newest to oldest):  # Registers:  # File marks: '0  1  0  /etc/neomuttrc |4,48,1,0,1531789956,"/etc/neomuttrc" '1  1  66  /etc/apt/sources.list.d/signal-bionic.list |4,49,1,66,1530816565,"/etc/apt/sources.list.d/signal-bionic.list" '2  51  0  /etc/apt/sources.list |4,50,51,0,1530816531,"/etc/apt/sources.list"  # Jumplist (newest first): -'  1  0  /etc/neomuttrc |4,39,1,0,1531789956,"/etc/neomuttrc" -'  1  66  /etc/apt/sources.list.d/signal-bionic.list |4,39,1,66,1530816565,"/etc/apt/sources.list.d/signal-bionic.list" -'  1  66  /etc/apt/sources.list.d/signal-bionic.list |4,39,1,66,1530816565,"/etc/apt/sources.list.d/signal-bionic.list" -'  51  0  /etc/apt/sources.list |4,39,51,0,1530816531,"/etc/apt/sources.list" -'  51  0  /etc/apt/sources.list |4,39,51,0,1530816531,"/etc/apt/sources.list" -'  51  0  /etc/apt/sources.list |4,39,51,0,1530816531,"/etc/apt/sources.list" -'  51  0  /etc/apt/sources.list |4,39,51,0,1530816531,"/etc/apt/sources.list" -'  1  0  /etc/apt/sources.list |4,39,1,0,1530816447,"/etc/apt/sources.list" -'  1  0  /etc/apt/sources.list |4,39,1,0,1530816447,"/etc/apt/sources.list" -'  1  0  /etc/apt/sources.list |4,39,1,0,1530816447,"/etc/apt/sources.list" -'  1  0  /etc/apt/sources.list |4,39,1,0,1530816447,"/etc/apt/sources.list"  # History of marks within files (newest to oldest):  &gt; /etc/neomuttrc     *   1531789952  0     "   1   0  &gt; /etc/apt/sources.list.d/signal-bionic.list     *   1530816564  0     "   1   66     ^   1   67     .   1   66     +   1   66  &gt; /etc/apt/sources.list     *   1530816454  0     "   51  0   It seems odd that I wouldn't have an unprivileged .viminfo but I did sudo udpatedb and locate .viminfo and still didn't surface more than the one root-owned file.
How to get a random value from dictionary? How did Enrico Fermi calculate the classical Fermi Problem? From Wikipedia: Fermi was known for his ability to make good approximate calculations with little or no actual data, hence the name. One example is his estimate of the strength of the atomic bomb detonated at the Trinity test, based on the distance travelled by pieces of paper dropped from his hand during the blast. Fermi's estimate of 10 kilotons of TNT was remarkably close to the now-accepted value of around 20 kilotons, a difference of less than one order of magnitude.  I have not been able to find any references explaining how he made this calculation. Please provide a reference or an example calculation.  See also: Prove or disprove an inequality involving complex numbers Consider following inequality:     $|z_1 + z_2|\ge|z_1| - |z_2|  \  \ \ \ \ \  z_1,z_2 \in \mathbb{C}$   Is that true always? I tried many examples and it was correct but I don't know how to prove that if it's right. in bash I have some jobs running, in background. They are always producing random irrelevant error messages that pollute the terminal. I am not always so prompt to start them with the 2&gt;&amp;1 &gt; /dev/null redirect. How can I redirect the output when they are already running? Can't reach wi-fi signal on Ubuntu, but can do it on other OS/devices (ath9k) I have two laptops, both running Ubuntu 13.10, as well as a different OS (Windows 7), dual boot on both.  My wi-fi router is on my bedroom and I want to get the wi-fi signal from the living room. I can reach the wi-fi signal from both pcs when running windows, with a relative good signal, but can't reach it on both of them when running Ubuntu, can't even connect to it.  Is there something that I can do to amplify the wi-fi signal? How can I fix apt error "W: Target Packages ... is configured multiple times"? Tutorial on how to back up my full Ubuntu desktop and files? I would like to be able to back up all my settings and files to a dedicated external hard drive in a way that makes (1) all the backup files accessible and (2) would allow me to restore my system is there is a crash.   Is there an app for this or any pointers?  Thank so much. given value of matrix, getting it's coordinate Does disabling root login enhance security? Unity Performance: How many Materials per Object? I don't know about you, but to me happens a lot: if I'm reading a question with a LOT of answers, (specially in a really specific question) I just read the most voted up: that's the way the system was made to be, and it's really good. The most relevant voted by the community are the first ones.  Since we have TOO many users, and a lot of them are reading the same questions and answering them almost at the same time, do you think the "urge" to be the first to answer a question and so gain reputation points makes people sometimes write things too fast and not try to really elaborate a really helpful answer? We may think: "people aren't going to read all answers, so I need to be really concerned about how fast I'm to answer". Are we incentivating "objective answers", or "not so good but objective and good to be voted up"?  I'm not trying to be unfair with all answers people here provide, we have really good ones here. But supose what I wrote above is a reality: what you think it would happen if it was a "time delay" between an "up-vote or down-vote" and it's sum in the answer? Summarizing: what if the sum wasn't almost "real time"? How do I properly use the "Not an Answer" flag? What is the "Not an Answer" flag and what is its purpose? When should I use this flag? When should I not use this flag? But I'm still not sure if I'm using the flag correctly... An answer is "Not an Answer", but the flag was declined or disputed!   See also: fp - How to keep running sum in variable? I have this code in my LaTeX:   \FPset{totalHours}{0}  \newcommand{\entry}[5]{     \FPeval{totalHours}{(totalHours)+#5}     #1 &amp; #2 &amp; #3 &amp; #4 &amp; #5 \\ }   Where \entry is meant to be an entry in a time log. The 5th argument is a number representing the number of hours in that entry. I want to keep a running total of the hours in a variable I can print later on, totalHours.   This seems to do the \FPeval but then totalHours gets reset to 0 by the next time I write \entry. What is the correct way to keep a running total? Thanks. A 2D game called Deer Hunter has projectiles like this:    Are the projectiles 2D or 3D models? How could I implement something similar? Does linear ordering need the Axiom of Choice? How do I catch a PHP fatal (`E_ERROR`) error? I can use set_error_handler() to catch most PHP errors, but it doesn't work for fatal (E_ERROR) errors, such as calling a function that doesn't exist. Is there another way to catch these errors?  I am trying to call mail() for all errors and am running PHP 5.2.3. Ill implement the some UI but its not working in the visualpage , can u know how implement jquery ui in viusalpage ,  Kindly tell the procedure ,     Im using this url its not working ,,,,, Expanding an event group shows more events than labeled when there are new events Related to : The question specifies morphs, but I wondered if this was true for Manifest as well? As Manifest is not an ability on the card, does  prevent it from being turned face up for its mana cost? Software to read a QR code? I saw a  reading a book, but I don't have a smart phone to check it.    So I just took a picture of it and saved my PC. And I downloaded libdecoderqr0, libdecodeqr-dev, libdecodeqr-examples for reading it. But I don't know how to use it.    What do I do next, or is there a nicer way to read QR codes?