meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:tools:vim [2026/06/09 10:35] – titannet | linux:tools:vim [2026/06/09 10:59] (current) – titannet | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| |'' | |'' | ||
| |'': | |'': | ||
| - | |'': | + | |'': |
| - | |'' | + | |'' |
| - | |'' | + | |'' |
| + | |||
| + | ==== Extended ==== | ||
| + | |||
| + | |'' | ||
| + | |''/ | ||
| + | |'' | ||
| ==== Copy / paste ==== | ==== Copy / paste ==== | ||
| + | |'' | ||
| + | |'' | ||
| + | |'' | ||
| |'''' | |'''' | ||
| |'''' | |'''' | ||
| - | |'''' | + | |
| - | |'''' | + | ===== Minimal .vimrc ===== |
| + | |||
| + | <code bash> | ||
| + | "+y #copy a selection to the system clipboard | ||
| + | "+p #paste from system clipboard | ||
| + | |||
| + | set nocompatible | ||
| + | filetype plugin indent on | ||
| + | |||
| + | set autoindent | ||
| + | set ts=4 | ||
| + | filetype on | ||
| + | |||
| + | syntax on | ||
| + | " Darstellung & Nummerierung | ||
| + | set number | ||
| + | set relativenumber | ||
| + | set showcmd | ||
| + | set wildmenu | ||
| + | |||
| + | " Suchen | ||
| + | set hlsearch | ||
| + | set incsearch | ||
| + | set ignorecase | ||
| + | set smartcase | ||
| + | |||
| + | " Tabs und Einrückung | ||
| + | set tabstop=4 | ||
| + | set shiftwidth=4 | ||
| + | set expandtab | ||
| + | set autoindent | ||
| + | |||
| + | " Verhalten | ||
| + | set backspace=indent, | ||
| + | set hidden | ||
| + | </ | ||
| Line 126: | Line 170: | ||
| zw Mark word as bad/ | zw Mark word as bad/ | ||
| zu / C-X (Insert Mode) Suggest words for bad word under cursor from spellfile | zu / C-X (Insert Mode) Suggest words for bad word under cursor from spellfile | ||
| + | |||
| + | |||
| + | ==== File Tabs ==== | ||
| + | |||
| + | |||
| + | :e filename - Edit a file | ||
| + | :tabe - Make a new tab | ||
| + | gt - Go to the next tab | ||
| + | gT - Go to the previous tab | ||
| + | :vsp - Vertically split windows | ||
| + | ctrl+ws - Split windows horizontally | ||
| + | ctrl+wv - Split windows vertically | ||
| + | ctrl+ww - Switch between windows | ||
| + | ctrl+wq - Quit a window | ||
| + | |||