qa   9342

« earlier    

Remembering previous deletes/yanks | Vim Tips Wiki | FANDOM powered by Wikia
Say you delete a paragraph with the command d} and you intend to paste that paragraph into another file.

So you edit the other file with :e other.txt and you scroll down to where you want to paste the original paragraph. But then you accidentally delete or yank some text.

Now typing p simply pastes the text that you just deleted or yanked.

Fortunately, Vim remembers previous deletes/yanks in the numbered registers. You can enter the command :reg to list all the registers.

If the text you want is in register 2, enter "2p to paste it after the cursor, or "2P to paste it before the cursor.

Small deletes (less than a complete line) do not fill the numbered registers.
QA  vim  data-management 
5 days ago by coltongrainger
filetype tex - What are the differences between LaTeX plugins? - Vi and Vim Stack Exchange
Some overview and references

There are alot of plugins for Vim. These are the ones I've recognized as being at least semi popular:


On, there is a huge list of LaTeX editors and IDEs. It gives a nice overview in general, but it also provides some overview of plugins for Vim:

Vim with LaTeX-Box
Vim with LaTeX-Suite
Vim with Snipmate and rubber
Vim with vimtex


vimtex is based on LaTeX-Box. It started out after I had contributed bug fixes and updates to LaTeX-Box for some time. I realized that the plugin could be written in a much more modern way if I wrote it from scratch. I first stripped most features and built a more robust and modular "engine". I then added features, and I think today it has most of the features of LaTeX-Box and then some.

Instead of giving a full list of features (see instead here for that), I will rather try to point out some of the differences between vimtex and other plugins. However, I want to provide some bold claims:

vimtex is the most modern Vim plugin for LaTeX available today
The code is high quality and it is currently being actively maintained by myself
The plugin is mostly stable, even though some features are still being developed (and as such may be subject to change and updates)

vimtex vs LaTeX-Box

Since vimtex is based on LaTeX-Box, it obviously has similar principles. The idea is to keep things simple and to solve problems thare are not already solved by other, better plugins. It utilizes latexmk to compile the LaTeX documents, and it builds upon the internal Vim plugin for syntax highlighting.

There is currently one important feature in LaTeX-Box that is missing in vimtex: Single-shot compilation with callback. The reason that this feature is not in vimtex is simply because it is complicated, and that I never found a way to implement it that is simple enough for my own preference (suggestions are welcome, please don't hesitate to open issues or pull requests).
vimtex vs LaTeX-Suite

The main difference between vimtex and LaTeX-Suite is probably that vimtex does not try to implement a full fledged IDE for LaTeX inside Vim. E.g.:

vimtex does not provide a full snippet feature, because this is better handled by UltiSnips or neosnippet or similar snippet engines.
vimtex builds upon Vim principles: It provides text objects for environments, inline math, it provides motions for sections and paragraphs
vimtex uses latexmk for compilation with a callback feature to get instant feedback on compilation errors
vimtex is very modular: if you don't like a feature, you can turn it off.
vim  latex  QA 
5 days ago by coltongrainger
calculus - Is there a shorthand or symbolic notation for "differentiable" or "continuous"? - Mathematics Stack Exchange
To say that a function f:X→Y is continuous one writes f∈C(X,Y)
which reads " f is in the set of continuous mappings from X to Y".
If a function f:X→Y is continuously differentiable, one writes f∈C1(X,Y).
QA  math.GM 
6 days ago by coltongrainger
ssh - Could not open a connection to your authentication agent - Stack Overflow
Did You Start ssh-agent?

You might need to start ssh-agent before you run the ssh-add command:

eval `ssh-agent -s`

Note that this will start the agent for msysgit Bash on Windows. If you're using a different shell or operating system, you might need to use a variant of the command, such as those listed in the other answers.

See the following answers:

ssh-add complains: Could not open a connection to your authentication agent
Git push requires username and password (contains detailed instructions on how to use ssh-agent)
How to run (git/ssh) authentication agent?.
Could not open a connection to your authentication agent

To automatically start ssh-agent and allow a single instance to work in multiple console windows, see Start ssh-agent on login.
Why do we need to use eval instead of just ssh-agent?

To find out why, see Robin Green's answer.
Public vs Private Keys

Also, whenever I use ssh-add, I always add private keys to it. The file ~/.ssh/ looks like a public key, I'm not sure if that will work. Do you have a ~/.ssh/id_rsa file? If you open it in a text editor, does it say it's a private key?
privacy/security  QA  ssh 
14 days ago by coltongrainger

« earlier    

related tags

a11y  accessibility  administrivia  advice  agile  ai  analysis  anvel  api  apt  audio  automated-testing  automation  aws  bad  bash  bestpractices  boot  browser  build-tool  cabal  chaos  checker  checklist  checksum  ci  cli  clojure  code  codequality  coding  community  comparison  compose  continuous-delivery  continuousdelivery  continuousdeployment  ctags  data-management  data  databases  deployment  design  development-environment  development-tool  development  devops  devopsqa  devtestops  docker  engineer  ffmpeg  formal_methods  format/style  games  gamification  git  github  gitit  gitlab  grep  grub  hash  haskell  healthcheck  howto  html  inspiration  java  js  jupyter  kernel  language  latex  lint  linux  management  math.ct  math.ho  math  mobile  nlp  node  notebooks  nsf-grad-award  numpy  operatingsystems  pandoc  performance  phone  php  pip  privacy/security  productmgmt  programmer  programming  python  quality  reference  rest  review  sage  screen  screenshot  setup  sitecore  software  sonarqube  source.code  spec  ssh  styleguide  supplier  support  symmathesy  sympoiesis  tdd  tech  test  testing  tools  tutorial  undergrad  unittesting  unix  validator  video  vim  visual  vlztodo  wcmsp18  web  webdesign  webdev  webtest  workflow  wrapper  yaml 

Copy this bookmark: