LINUXOPOLIS # 2019-12-15 ~ VIM - CHEAT SHEETsteemCreated with Sketch.

in #linux6 years ago (edited)

VIM - CHEAT SHEET

Building a Linux Habitat
Published with SteemPeak
home previous

screenshot by willi glenz

$ vim ~/.config/fish/functions/gv-cheatsheat.fish

function gv-cheatsheat --description "vim - cheat sheet"
    clear
    echo
    echo '=========================================================================='
    echo '                           VIM - CHEAT SHEET                              '
    echo '--------------------------------------------------------------------------'
    echo '                             hjkl HML gg G                                '
    echo '--------------------------------------------------------------------------'
    echo 'abbreviate        :ab :abc :una ^v                                        '
    echo 'baseline          $ vim -u NONE -N                                        '
    echo 'buffers           :ls :buffers :files :bp :bl :b# :badd :bd               '
    echo 'clipboard         Vj"+y                                                   '
    echo 'colorsheme        :colorsheme elflord|desert|evening|default              '
    echo 'config            $ vim ~/.vimrc                                          '
    echo 'folds             zf zo zc zd                                             '
    echo 'macros            qa :reg a @a                                            '
    echo 'marks             [single quote] :marks ma sq-a                           '
    echo 'match             [insert mode] ^n                                         '
    echo 'mode command      :w :e                                                   '
    echo 'mode visual       v V ctrl-v                                              '
    echo 'registers         [double quote] dqdq dq0-9 dqa-z dqA-Z                   '
    echo 'set               scrolloff=99 rnu nu nonu ruler laststatus=2             '
    echo 'sort              Vj:sort                                                 '
    echo 'sudo              :w !sudo tee %                                          '
    echo 'windows           ^ws ^wv :vsplit ww ^w10< ^w= ^wq                        '
    echo '--------------------------------------------------------------------------'
    echo '                        :q :qa :wq :q! ZZ ZQ                              '
    echo '--------------------------------------------------------------------------'
    echo
end


SOURCES
 user manual ................................................:h user-manual <ctrl-w_>
 reference manual ............................................ :h reference <ctrl-w_>
 picture ....................................... screenshoot by me ~ my gnome-desktop
Sort:  

Congratulations @wglenz! You have completed the following achievement on the Steem blockchain and have been rewarded with new badge(s) :

You published a post every day of the week

You can view your badges on your Steem Board and compare to others on the Steem Ranking
If you no longer want to receive notifications, reply to this comment with the word STOP

To support your work, I also upvoted your post!

You can upvote this notification to help all Steem users. Learn how here!

Coin Marketplace

STEEM 0.04
TRX 0.32
JST 0.084
BTC 61656.48
ETH 1593.99
USDT 1.00
SBD 0.47