Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 13302

Questions about the use of vim for handling several files at the same time.

1 vote

How can I overwrite a whole file with the content of another?

Another version that uses functions more and avoids messing up the registers function! SplitOverwrite() " get the whole file content let x = getline(1, '$') " Move cursor to the window …
doraemon's user avatar
  • 1,677
4 votes

How can I overwrite a whole file with the content of another?

based on @Warren's answer, there are actually two other alternatives running from the source file: :w !cat > dest_file (note the space between w and !, which runs an external program and uses the c …
doraemon's user avatar
  • 1,677