Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

What does-save = 2 mean in asynctask.vim?


Asked by Cedric Dudley on Nov 29, 2021 FAQ



The -save=2 represents to save all modified buffers before running the task. At this point, you can have your F5 to run all type of files. And plugins like quickrun can be obsoleted immediately, they can't do better than this. Then we continue to polish file-build to support more file types:
Consequently,
To save a file and exit Vim: 1. Switch to command mode by pressing the ESC key. 2. Press : (colon) to open the prompt bar in the bottom left corner of the window. 3. Type x after the colon and hit Enter. This will save the changes and exit. Alternatively, a command that will also save a file and exit the text editor is::wq
Indeed, As vim 8.0 released in 2017, we have got many wonderful plugins like: LSP, DAP and asynchronous linters. Even things like vimspector which could only been imagined in emacs in the past, now become reality in vim. However, vim is still lack of an elegent task system to speed up your inner software development cycle (edit, compile, test).
Additionally,
Therefore, the command for copying a word is yw, which stands for yank word, and the command for pasting whatever has been copied is p, meaning put. If you look up additional commands in the future, it can be confusing if you don't know what yank and put mean when using Vim.
Also Know,
From command mode, you can also use last-line commands, which generally start with the use of a colon. For example, :w saves your file and :q allows you to exit Vim.