VIM v19-02-01steemCreated with Sketch.

in linux •  20 days ago

VIM
homepage documentation manual reference faq wiki

Screenshot from 2019-01-30 12-40-47.png
Image source: Willi Glenz - Screenshot vim

UPDATE

[09] ^g • ^e ^n • ^u ^d ^f ^b
[13] u U ^r

VIM-SESSION

[01] $ firefox file:///usr/share/doc/vim-doc/html/index.html &
[02] $ firefox vim-adventures.com &
[03] $ vimtutor
[04] $ man vim
[05] $ vim -O ~/.vimrc ~/.bashrc ^ww ^wr ^wc ^wq
[06] $ vim ~/.bashrc ~/.bashrc :args :ls :next :previous :n :N :bn :bp
[07] j k h l
[08] z<enter> zz z-
[09] ^g • ^e ^n • ^u ^d ^f ^b
[10] [InsertMode] ^n
[11] ^ws ^wv ^wr ^wc ^wq
[12] zf5j zo zc zd
[13] u U ^r
[14] .
[15] :set nu nonu
[16] :set relativenumber norelativenumber
[17] :set hls nohls *
[18] :set ruler noruler
[19] :set linebreak nolinebreak
[20] :help user-manual
[21] :ab :abc :unab ^v
[99] :wq

ABBREVIATIONS

:ab psvm public static void main(String[] args) {<CR>}<Esc>ko
:ab sysout System.out.println("");<Esc>2hi



~/.bashrc

EDITOR=/usr/bin/vim
VISUAL=$EDITOR
export EDITOR VISUAL



~/.vimrc

" GENERAL
syntax on
set number
set relativenumber
set ruler
set mouse=a
set hls
set background=dark
set encoding=utf8
" INDENT
set autoindent
" TABs
set tabstop=3
set softtabstop=3
set shiftwidth=3
set expandtab
" MAPs
nmap <leader>w :w!<cr>
map <F2> :echo 'Current time is ' . strftime('%c')<CR>
" ABBREVIATIONS
:ab psvm public static void main(String[] args) {<CR>}<Esc>ko
:ab sysout System.out.println("");<Esc>2hi



INSTALLATION

# apt-get install vim vim-doc vim-scripts 
$ dpkg -L vim-doc
# update-alternatives --config editor
$ vim --version | less
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!