LINUXOPOLIS # 1,042 ~ VIM - CONFIGURATIONsteemCreated with Sketch.

in #linux5 years ago (edited)

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 <up> <nop>                                                           '
    echo ' imap <up> <nop>                                                          '
    echo ' map <down> <nop>                                                         '
    echo ' imap <down> <nop>                                                        '
    echo ' map <left> <nop>                                                         '
    echo ' imap <left> <nop>                                                        '
    echo ' map <right> <nop>                                                        '
    echo ' imap <right> <nop>                                                       '
    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 <F2> :echo 'Current time is ' . strftime('%c')<CR>                  '
    echo ' let mapleader = ","                                                      '
    echo ' nmap <F2> ggVG"+yzm                                                      '
    echo ' map <F5> :set list!<CR>                                                  '
    echo ' map <F6> :setlocal spell! spelllang=en_us<CR>                            '
    echo ' map <Leader>c :w<CR>:!clear && javac % && java %:r<CR>                   '
    echo ' map <Leader>d <esc>dG                                                    '
    echo ' map <Leader>s :w<CR>                                                     '
    echo ' map <Leader>w :w<CR>                                                     '
    echo ' map <Leader><F8> :set rnu!<CR>                                           '
    echo ' map <Leader>, :mks!<CR> :wa<CR>                                          '
    echo ' map <Leader>q zm:mks!<CR> :wqa<CR>                                       '
    echo '                                                                          '
    echo ' "ABBREVIATIONS                                                           '
    echo ' :iab ii <esc>                                                            '
    echo ' :iab psv public static void(String[] args) {<cr>}<esc>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

Coin Marketplace

STEEM 0.21
TRX 0.20
JST 0.034
BTC 91797.35
ETH 3122.69
USDT 1.00
SBD 2.98