Difference between revisions of "Vi, Vim, Vscode editors"
Jump to navigation
Jump to search
(Created page with "= 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...") |
|||
Line 6: | Line 6: | ||
;redirect command STDOUT to the current edited file in the cursor position | ;redirect command STDOUT to the current edited file in the cursor position | ||
:r!dir | :r!dir | ||
;show line number | |||
:set number or :set nu | |||
= VIM only = | = VIM only = |
Revision as of 14:53, 25 February 2016
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