vim-stuff
vim Stuff
Windows
CTRL-W <arrow left / arrow right> switch window
Open files in windows:
$ vim -o file1 file2 # horizontal split $ vim -O file1 file2 # vertical split
Tabs
:tabnew neuer Tab gT, gt Tab wechseln $ vim -p <file1> <file2> files in Tabs öffnen
diff
$ vim -d <file1> <file2>
Mouse woes in Debian 9+
Use shift+Mouse button to paste stuff.
.vimrc
- .vimrc
"activate syntax highlighting syntax on "cope with black background set background=dark "honor modelines in files set modeline set modelines=5 "activate intelligent indenting set autoindent set backspace=indent,eol,start "display statusline set laststatus=2 "display position in statusline set ruler "activate linenumbers set number "display tab characters set listchars=tab:>-
Modelines
python
# vim:ft=python:ts=4:sts=4:sw=4:et:fileencoding=utf8
vim-stuff.txt · Last modified: 2021/09/17 08:55 by baumi