vim-stuff
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
vim-stuff [2019/10/06 17:51] – [Mouse woes in Debian 9] 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 22: | Line 28: | ||
===== .vimrc ===== | ===== .vimrc ===== | ||
- | + | < | |
- | <file .vimrc> | + | |
" | " | ||
syntax on | syntax on | ||
Line 43: | Line 48: | ||
set listchars=tab:> | set listchars=tab:> | ||
</ | </ | ||
+ | ===== Modelines ===== | ||
+ | ==== python ==== | ||
+ | <code python> | ||
+ | # vim: | ||
+ | </ | ||
{{tag>kb vim}} | {{tag>kb vim}} | ||
vim-stuff.1570377093.txt.gz · Last modified: 2019/10/06 17:51 by baumi