W. Glenz avatar

LINUXOPOLIS # 1,042 ~ VIM - CONFIGURATION

wglenz

Published: 10 Mar 2020 › Updated: 10 Mar 2020LINUXOPOLIS # 1,042 ~ VIM - CONFIGURATION

LINUXOPOLIS # 1,042 ~ VIM - CONFIGURATION

VIM - CONFIGURATION

Building a Linux Habitat
willi glenz @ telegram
Published with SteemPeak
home ~ previous

screenshot by willi glenz

vim ~/.config/fish/functions/vim-configuration.fish

function gvim-configuration --description 'vim - configuration'
    clear; echo
    echo '=========================================================================='
    echo '                            VIM - CONFIGURATION                           '
    echo '=========================================================================='
    echo ' $ vim ~/.vimrc                                                           '
    echo '--------------------------------------------------------------------------'
    echo ' "BASE                                                                    '
    echo ' "colorscheme desert                                                      '
    echo ' "set colorcolumn=80                                                      '
    echo ' "set cursorline                                                          '
    echo ' colorscheme elflord                                                      '
    echo ' syntax on                                                                '
    echo ' set nu                                                                   '
    echo ' set rnu                                                                  '
    echo ' set nocompatible                                                         '
    echo ' set laststatus=2                                                         '
    echo ' set ruler                                                                '
    echo ' set background=dark                                                      '
    echo ' set encoding=utf8                                                        '
    echo ' set linebreak                                                            '
    echo ' set mouse=a                                                              '
    echo ' set path+=**                                                             '
    echo ' set scrolloff=999                                                        '
    echo ' set showcmd                                                              '
    echo ' set showmode                                                             '
    echo ' set splitright                                                           '
    echo ' set wildmenu                                                             '
    echo ' filetype on                                                              '
    echo ' filetype plugin on                                                       '
    echo '                                                                          '
    echo ' "DISABLE ARROW KEYS                                                      '
    echo ' map                                                             '
    echo ' imap                                                            '
    echo ' map                                                           '
    echo ' imap                                                          '
    echo ' map                                                           '
    echo ' imap                                                          '
    echo ' map                                                          '
    echo ' imap                                                         '
    echo '                                                                          '
    echo ' "SEARCH                                                                  '
    echo ' "set noincsearch                                                         '
    echo ' "set hlsearch                                                            '
    echo ' set incsearch                                                            '
    echo ' set nohlsearch                                                           '
    echo '                                                                          '
    echo ' "TABs                                                                    '
    echo ' set autoindent                                                           '
    echo ' set expandtab                                                            '
    echo ' set tabstop=4                                                            '
    echo ' set softtabstop=4                                                        '
    echo ' set shiftwidth=4                                                         '
    echo '                                                                          '
    echo ' "FOLDING                                                                 '
    echo ' autocmd BufWinLeave *.* mkview                                           '
    echo ' autocmd BufWinLeave *.* mks!                                             '
    echo ' autocmd BufWinEnter *.* silent loadview                                  '
    echo '                                                                          '
    echo ' "KEY MAPPINGS                                                            '
    echo ' "map  :echo 'Current time is ' . strftime('%c')                  '
    echo ' let mapleader = ","                                                      '
    echo ' nmap  ggVG"+yzm                                                      '
    echo ' map  :set list!                                                  '
    echo ' map  :setlocal spell! spelllang=en_us                            '
    echo ' map c :w:!clear && javac % && java %:r                   '
    echo ' map d dG                                                    '
    echo ' map s :w                                                     '
    echo ' map w :w                                                     '
    echo ' map  :set rnu!                                           '
    echo ' map , :mks! :wa                                          '
    echo ' map q zm:mks! :wqa                                       '
    echo '                                                                          '
    echo ' "ABBREVIATIONS                                                           '
    echo ' :iab ii                                                             '
    echo ' :iab psv public static void(String[] args) {}ko                 '
    echo ' :iab sout System.out.println(                                            '
    echo '=========================================================================='
    echo
end
SOURCES
 vim help ............ :h <ctrl-w_>
 user manual ......... :h user-manual <ctrl-w_>
 reference manual .... :h reference <ctrl-w_>
 fish ................ fishshell.com/docs/current/index.html
 picture ............. screenshoot by me ~ my gnome-desktop

Leave LINUXOPOLIS # 1,042 ~ VIM - CONFIGURATION to:

Written by

Linux • Debian • Bash • Java

Read more #linux posts


Best Posts From W. Glenz

We have not curated any of wglenz's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From W. Glenz