Is it possible to combine registers in vim? For example, if I have registers "a, "b, "c, can I easily create register "d which is a concatenation of all three? That is, without pasting them all and then selecting the whole thing.
Combining registers in vim
945 Views Asked by Marcin At
2
There are 2 best solutions below
Related Questions in VIM
- Firefox vim mode, can't switch to normal mode in style editor
- How to skip a command in redo
- Vim errorformat multiline string
- How to let Vim tell the switching across several `gvim.exe` processes?
- match wordchar and/or dot string of anylength
- augment the number of lines on indent
- Barebones vim with `nocp`
- Moved .vimrc in a new dir, trying to get it to work
- Copying text from gvim editor to system clipboard works only once per session
- Temporarily declare a word as wrong in vim spellchecker
- Automatically switch back to NerdTree after pressing "o" on file
- How to use Ctags to list all the references of a symbol(tag) in vim?
- Vim + Airline + Linux sloppy exit
- How to delete a WORD in vim in insert mode
- Prevent single letter deletes to spam clipboard manager
Related Questions in CONCATENATION
- Why is concat reformatting my headings?
- SELECT CONCAT alternative in PostgreSQL
- SUM of rows with GROUP CONCAT and LEFT JOIN
- SAS Concatenate Multiple Variables to Create Data-Driven Macro Statements
- MySQL turn a JOIN statement into a Stored Procedure or Function?
- gulp concat after sass
- SQL count date time
- Select Concat Substring and Replace in MySQL
- concatenate two byteBuffers to a single
- concatenation with multiple quotes while displaying html using PHP
- String Concatenation Operator + Ambiguity
- Laravel Elixir - Compiling and concatenating bootstrap files with a custom file name
- How to expand a string within a string in python?
- Create a new column in my SQL View - Column must be two other columns combined
- Concatenate appended strings and remove last character
Related Questions in VIM-REGISTERS
- Combining registers in vim
- Vim registers standards
- how to query the highest digit in a search?
- Difference between @a="<C-r>0" and @a=@0
- vim macro across screen windows
- Clear vim register, but still able to paste
- How to fill a register without entering in insert mode?
- "+ register cannot work in vim with clipboard support
- Searching backward for visual mode selection
- Print information about register used in Vim report
- Duplicate % register and pass as an argument
- Vim Register Use in Ex Mode
- vim - how do I yank to register inside a function?
- VIM to delete a range of lines into a register
- Copy from one register to another
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
With the command
:let @a = "something"you can assign to a register.With the command
:let @A = "another thing"or:let @a .= "another thing"you can append to a register.Lets say your registers are filled as follows (inspected using the reg command)
Then you can call
or
And your register d looks like