diff --git a/.searching.txt.swo b/.searching.txt.swo new file mode 100644 index 0000000..db7f0a0 Binary files /dev/null and b/.searching.txt.swo differ diff --git a/vim-commands b/vim-commands index fc67c48..4ce9355 100644 --- a/vim-commands +++ b/vim-commands @@ -490,6 +490,8 @@ Line mode: and even all the lines in the file, etc. * : On which line number this command to be executed. + To execute the command on same line as cursor, + don't mention . * , : From the starting line number to the ending line number to @@ -503,3 +505,56 @@ Line mode: :1,5s///g It will do the same form line number 1 to 5. + + ://,//s///g + + It will do the same from line which has pattern matching with + with and ending with line which has pattern + matching with pattern . + + + ------------------------------------ + + + $ = last line; . = current line + + :.,$s///g + + % = All the line (entire file) + + :%s///g + + ----------------------------------- + + + For including character such as "/" for and + we can use "\" which is a escape character. + + For ex: + + :s/\/\//\/\// + + OR + + we can use other non-alphanumeric character as a separator. + + For ex: + + :s#//#// + + %% TIPS %% + + To set options in VIM, we can use :set