Vi, Vim, Vscode editors

From Ever changing code
Revision as of 14:53, 25 February 2016 by Pio2pio (talk | contribs) (→‎VI or VIM)
Jump to navigation Jump to search

VI or VIM

drop to bash
:!bash   or   :!sh
edit other file
:e file.txt    #autocomplite works
redirect command STDOUT to the current edited file in the cursor position
:r!dir
show line number
:set number    or  :set nu

VIM only

Split
:split   or   :vsplit

C^w, c -close current window C^w, C^w - switch between windows