** vi
- substitution
:start_line,end_line s/object/destination/g
:1,$ s/object/destination/g ( -> for all the lines )
- Insertion from file
:r file_name
- Display the Line number
:set nu
- Write to file with line number
:start_line,edn_line w File_Name
- Write to file with marker
'ma' at the start line // the line is marked as 'a'
'mb' at the end line // the line is marked as 'b'
:'a,'b w File_Name
** gvim/gview : Editor
- .gvimrc :
Set parameters and evironment for gvim, e.g. colors of backgroud and font, highlights, syntax format, etc.
☞ e.g. https://ya-n-ds.tistory.com/1556#comment17238041
cf. :set ft=verilog // Set Syntax format as Verilog
- gvim . // View files in the current directory
- Move to a file in the opened file : gf
Move back to the original file : ctrl+shft+6
- Check difference bewteen 2 files
> gview -d file1 file2
@gview menu -> File -> Split Diff with...
- Column Block Insertion
☞ Place the cursor on the start point of the vertical change → ‘ctrl + v’
☞ Pull down the cursor to the end of the edited line
☞ ‘shift + i’ → Write the characters to be inserted → Esc
- Window Menu
☞ Window ( alt + w ) → Split : Horizontal split
☞ Window ( alt + w ) → (v) Split Vertically
☞ Window ( alt + w ) → (x) Split File Explorer : View of Directory and File