LINUXOPOLIS # 2019-12-22 ~ SYSTEM-EDITOR

wglenz(54)
Published in
#linux
Words
7
Reading
1 min
Listen
Play
7y

SYSTEM-EDITOR

Building a Linux Habitat
Published with SteemPeak
home previous

screenshot by willi glenz

$ vim ~/.config/fish/functions/geditor.fish

function geditor --description "system-editor"
    clear
    echo
    echo '=========================================================================='
    echo '                               SYSTEM-EDITOR                              '
    echo '=========================================================================='
    echo
    echo ' $ apt-cache show vim                                                     '
    echo ' $ apt install vim vim-doc vim-scripts vim-ctags                          '
    echo
    echo ' # update-alternatives --config editor                                    '
    echo  
    echo ' $ vim ~/.bashrc                                                          '
    echo '     export EDITOR=vim                                                    '
    echo '     export VISUAL=vim                                                    '
    echo  
    echo ' $ source ~/.bashrc                                                       '
    echo
    echo '=========================================================================='
    echo
end
SOURCES
 vim ........................................................................ vim.org
 man pages ................................................................ $ man vim
 picture ....................................... screenshoot by me ~ my gnome-desktop
LINUXOPOLIS # 2019-12-22 ~ SYSTEM-EDITOR | Ecency