diff --git a/new-info.txt b/new-info.txt index 776f286..d1a250f 100644 --- a/new-info.txt +++ b/new-info.txt @@ -1,4 +1,5 @@ Commands: + ZZ -- write out and exit 75 i ! -- insert "!" 75 times 75 a ! -- append "!" 75 times @@ -41,9 +42,7 @@ Commands: `[a-z] -- move to the row and column with the mark :set hlsearch -- will highlight all matches :set ignorecase -- to ignore letter case during searches - :set number -- show line numbers - :set nonumber -- unshow line numbers - :set ruler -- show in the bottom right corner where is your cursor + :set number -- show line numbers :set nonumber -- unshow line numbers :set ruler -- show in the bottom right corner where is your cursor :marks -- see all available marks :marks p -- to see where mark are specified :marks pF -- to see where several marks are specified @@ -206,9 +205,18 @@ Commands: :grep error_string *.c -- open files with concrete variable. use :cn(ext), :cp(rev), :cl(ist), :copen, :cfirst, :clast, :ccNUM goto + Typing command-line commands quickly (20): - qwe - + During switches in command with TAB you can use CTRL-P to switch in + other direction. + Type few letters in command mode and press CTRL-D to see overview. + :se -- go to previous command which starts with se + CTRL-Z -- suspends vim, after that you can use `fg` to restore vim + '0 '1 ... -- Come back to the place, where you left Vim previous time + :oldfiles than :e #<2 to edit the second file + :browse oldfiles than q than number of file -- to open previous file + :wviminfo! ~/tmp/viminfo in 1 vim than :rviminfo ~/tmm/viminfo in 2 vim + -- to save and restore information while still running Vim Hints: There is lowercase and uppercase marks. Uppercase marks are global, they can help you to switch between the files. Lowercase marks are local for