vim-stuff
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vim-stuff [2017/12/22 17:35] – baumi | vim-stuff [2021/09/17 08:55] (current) – baumi | ||
---|---|---|---|
Line 6: | Line 6: | ||
CTRL-W <arrow left / arrow right> switch window | 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 ===== | ===== Tabs ===== | ||
< | < | ||
Line 18: | Line 24: | ||
</ | </ | ||
- | ===== Mouse woes in Debian 9 ===== | + | ===== Mouse woes in Debian 9+ ===== |
Use shift+Mouse button to paste stuff. | Use shift+Mouse button to paste stuff. | ||
+ | |||
+ | ===== .vimrc ===== | ||
+ | <file vim .vimrc> | ||
+ | " | ||
+ | syntax on | ||
+ | "cope with black background | ||
+ | set background=dark | ||
+ | "honor modelines in files | ||
+ | set modeline | ||
+ | set modelines=5 | ||
+ | " | ||
+ | set autoindent | ||
+ | set backspace=indent, | ||
+ | " | ||
+ | set laststatus=2 | ||
+ | " | ||
+ | set ruler | ||
+ | " | ||
+ | set number | ||
+ | " | ||
+ | set listchars=tab:> | ||
+ | </ | ||
+ | ===== Modelines ===== | ||
+ | ==== python ==== | ||
+ | <code python> | ||
+ | # vim: | ||
+ | </ | ||
{{tag>kb vim}} | {{tag>kb vim}} | ||
vim-stuff.1513960549.txt.gz · Last modified: 2017/12/22 17:35 by baumi