if ctrl z pressed, press fg Enter to go back to vim.
h - leftj - downk - rightl - leftb - move backward to the beginning of the word$ - end0 - home^ - move to the first non-blank character of the line) - jump forward one sentence( - jump backward one paragraph{ - jump forward one paragraph} - jump backward one paragraphH - jump to the top of the screen1G - jump to the beginning of the file (same as gg)50G - jump to line 50'm - jump to the the beginning of the line of mark m\m - jump to the cursor position of mark m`"" - return to the line where the cursor was before the latest jump(two single qoutes)\` - return to the cursor position before the latest jump (undo the jump)(two back ticks. this is above the Tab key on some keyboards)`% - jump to the corresponding item, e.g. from an open brace to its matching closing brace.arrows - moving lineso - inserting newlines belowO - inserting newlines abovectrly - scroll upctrle - scroll downgg - back to topG - jump to the end of the filea - type appended textg+t - change active tabtabnew - new tabesc - place to normal mode:vsp - vertical split:sp - split:A - insert at the end of the line:I - insert at the beginning of the line
w - savewq - quit and savewq! - quit and disregard changes:saveas filename - save asnote: wrap "" if filename contain spaces
d -deletedd -deleting the entire rowd$ -deleting from cursor at the end of the linedw -deleting upto the end of the word including spacesde -deleting upto the end of the current wordx -deleting character
set spell - checking all uncorrect words.z= - go to word to correct then type z= to view the all uncorrect words.set nospell - setting to no spell.ga character - highlight the word first before pressing gagaip + character - aligning with specific character //disregard + signga ctrl x + character - custom aligning // disregard + signv - highlighti - insert textshift+> - tabu - undoctrl r - redohiglight the word then press control n until all words are selected then press s - edit same word in one time:Tab /word - tabularize(after typing :Tab /word press enterctrlv - highlighting by line downwards (use the navigation key to navigate)
\p - searching filesm - Add, edit, Delete,Copy files:sort - sortinghighlight the word then ctrl n then press s to edit - multiple editing.highlight the word then shift+S+" or ' - wrap text with single/double quotec+s then press double/sing quote - changing wrapper:grep "word to search" -r ./sourceDirectoryToBeSearch - searching file:cw - (view the results)sorting the searched filesdi input character - deleting inside
v - highlight"+y - copy to system clipboard"+p - paste from system clipboardyyp - copy current line in cursor
y - copyp - paste:e filename - search the .file|p - search fileyyp - instant copy the line
"register(anyLetter) y - copy to register"register(choosenLetter) - paste from register
ci" or () - copy inside closing characters like ", () , [], {}vi" or () - visual inside closing characters like ", () , [], {}di" or () - delete inside closing characters like ", () , [], {}ctrlv shifti - multiple inputs vertically
\n - open & close sidebar\p - search file/nameOfFile - search wordctrl h or l - move from edit field to dirs - open file in new tab/wordToSearch - to search a wordn - move cursor to searched word/s downwardN - move cursor to searched word/s upwardnoh - exit from search modeT - open in new tabgt - next tabgT - previous tabs - open file horizontallyi - open file verticallyctrl+w then no. of spaces then shift < or > - widening nerdi - open file in split window horizontallys - open file in split window vertically
ctrlw numberOfSpaces then < or > - adjusting nerdctrlw| - set to full screen selected windowctrlw= - set the screen of the selected window to equal size:vsp - open file in split window horizontally:sp - open file in split window vertically
type html tags then press ctrlY,
<html>sample tag</html>tag.className*5 ctrly, - multiple tagshighlight then gc - to commenttag.nameOfTheClass then press ctrlYcomma - creating html element with class name:set tw=999 - removing vertical limitationvat - highlighting divs
:new filename.txtm - adding,deleting,copying
diff - viewing changes.-- . - remove all changes
hi Normal ctermbg=none - set background to transparentgit rebase - i root branchname