Legal Disclaimer

Tech in your hand
An easy approach to understand tech specs
Learn to Impress
Custom Search

Feedback ? Send it to or join me at

Legal Disclaimer

GVIM VI VIM GVIM empty GVIM Merge GVIM drop GVIM Num GVim duplicate GVIM time GVIM Make GVIM Markers GVIM spellcheck GVIM Syntax GVIM Reverse GVIM lines GVIM Intro
Home.Pics.LTE Home.OFDMA  .
GVIM command to duplicate columns
This command executes line by line and the explanation of the regular expression above is discussed below for unix.

:%s/.*/& &/
:%s - do a global search in the file opened in gvim.
.* - matches everything in a line
& & - places every match twice in the same line.
Input text

After running regular expression :%s/.*/& &/
We have:

 aaa  aaa
bbb bbb
ccc   ccc
ddd ddd
eee  eee
As an example we discussed set of five lines in a text file below.
You can do :set nohl to remove any highlights
How to move up and down from current line by  a fixed number?

GVIM has some short-cuts to move/jump inside files in increment/decrement of numbers.
You can simply type.
:+10 to jump down by 10 lines
:-23 to go up by 23 lines
Goto first line in gvim
Goto last line in gvim
How to revert changes in gvim based on time? Go to older changes in time.
How to run shell commands from gvim in unix?
How to compile your code from within the program? Use make in GVIM?
How to create markers in gvim editor? Easy to navigate while editing a file.
How to duplicate columns in GVIM?  How to enable spell check & command to import language specific dictionary?
How to set syntax in gvim for filetypes like perl, python, verilog?
>> How to Remove highlights or color from text file? Simply do :nohls
>> How to Search in a text file ?
Simply do /<search_pattern>
Anything after / will be search pattern to find in file.
>> How to set Ignore case in text file for search? :set ic
>> How to open multiple files in GVIM?
Use :split <path_of_file>
>> How to switch between multiple files using only keyboard in GVIM editor?
When multiple files are open in gvim editor, use ctrl+w 2 times to jump in-between files.
>> How to merge the line with line below? Shift+j or capital J
>> How to change text to lowercase or uppercase?
gu{motion} - As you move the up/down arrows the lines will change to all lower case.
gU{motion} - As you move the up/down arrows the line will change to all upper case.
Basic commands :

How to Jump to first or last line or a specific line of text file?
How to move to home, middle or Last line of current view?
How to show or remove line numbers?
Other GVIM topics below.