VIM
Published with SteemPeak
Screenshot by Willi Glenz
SUMMARY
VIM ~ A PROGRAMMER'S EDITOR
003 cheat-sheet v1 19-06
001 movements v2 19-06
004 buffers v1 19-06 new
002 sources v1 19-06
#004
004 BUFFERS
:ls :buffers .............................................. list
:b1 :b2 :bn :bp :bf :bl :b# ....... 1 2 next previous first last
:badd <ctrl-d> ............................................. add
:bd ..................................................... delete
:set hidden|nohidden .................................... hidden
:mks :mks! ........................................ save session
003 CHEAT-SHEET
:ve :version ............................................ version
:ab :abc :unab ^v .................................... abbreviate
a A i I o O s S C ~ .................... append insert substitute
$ vim -u NONE -N ....................................... baseline
r x ~ ..................................... replace delete change
ci( ci{ ci< ci" .................................... change inner
v j " + y ............................................. clipboard
<esc> gg v G "+ y .......................................... copy
dd D x d$ dip diw daw dit di" das ........................ delete
$ vim -O ~/.vimrc ~/.bashrc ^ww ^wr ^wc ^wq ................ edit
~ :e :edit $ ^xe ........................................... edit
zf5j zo zc zd ........................................... folding
:ve ^g g^g .......................................... information
qa :reg a @a ............................................. macros
m1 '1 `1 marks ............................................. mark
[InsertMode] ^n ........................................... match
:set nu|nonu :set rnu|nornu ............................. numbers
. ........................................................ repeat
/ f * # q/ q? q: :%s/one/two/g ........................... search
/\cabc /\Cabc /\<abc\> :nohl ............................. search
:set incsearch noincsearch :set hls nhls ................. search
$ vimtutor en .......................................... tutorial
u U ^r ................................................ undo redo
^wv ^ws ^wq ^ww ^wr ^wc ................................. windows
gg G ^g 50% ^e ^y ^n ^u ^d ^f ^b ........................ windows
:set ruler noruler ...................................... windows
:set linebreak nolinebreak .............................. windows
:call matchadd('colorColumn', '\%81v', 100) ............. windows
:q :q! :qa :qa! :wq :wqa :exit ZZ ZQ ....................... exit
002 SOURCES
$ man vim .................................................. man-pages
file:///usr/share/doc/vim-doc/html/index.html ............ file-system
:h user-manual ........... <ctrl-w_> ................. vim-help-system
:h reference ............ <ctrl-w_> ................. vim-help-system
:h :resize ............... <ctrl-w_> ................. vim-help-system
Documentation I : vimhelp.org
Documentation II : vimhelp.org/usr_toc.txt.html
FAQ : vimhelp.org/vim_faq.txt.html
Wiki : vim.wikia.com/wiki/Vim_Tips_Wiki
001 MOVEMENTS
zz z. zb z- zt z<enter> ... cursor ....................... move cursor
h j k l gj gk ............. character .......... left, down, up, right
b w B W ge e .............. word ....................... back, forward
0 ^ gm $ .................. sentence .............. start, middle, end
( ) ....................... sentence .................. next, previous
{ } ....................... paragraph ................. next, previous
H M L ..................... window ................. high, middle, low
gg G 1% 50% 100% .......... document ................ first, last line
% ......................... brace, bracket, comment ............. next
Homepage : vim.org
Reference : vimhelp.org/quickref.txt.html
This post had received 11.69% upvote from @steemitportugal account!

Vote for @steemitportugal to Witness. Your vote is very important to us!
Visit our WebSite www.steemitportugal.com (tutorials,news...)
Thank you very much.
Click here to vote
Delegation for daily voting: 10SP-25SP-50SP-100SP-250SP-500SP-1000SP