User Tools

Site Tools


vim-stuff

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
vim-stuff [2017/08/22 13:20] – created baumivim-stuff [2021/09/17 08:55] (current) baumi
Line 1: Line 1:
 ~~META: ~~META:
 date created = 2017-06-13 09:00 date created = 2017-06-13 09:00
-&date modified = 2017-06-13 09:00 
 ~~ ~~
 ====== vim Stuff ====== ====== vim Stuff ======
Line 7: Line 6:
 CTRL-W <arrow left / arrow right> switch window CTRL-W <arrow left / arrow right> switch window
  
 +Open files in windows:
 +
 +<code>
 +$ vim -o file1 file2    # horizontal split
 +$ vim -O file1 file2    # vertical split
 +</code>
 ===== Tabs ===== ===== Tabs =====
 <code> <code>
Line 17: Line 22:
 <code> <code>
 $ vim -d <file1> <file2> $ vim -d <file1> <file2>
 +</code>
 +
 +===== Mouse woes in Debian 9+ =====
 +Use shift+Mouse button to paste stuff.
 +
 +===== .vimrc =====
 +<file vim .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:>-
 +</file>
 +===== Modelines =====
 +==== python ====
 +<code python>
 +# vim:ft=python:ts=4:sts=4:sw=4:et:fileencoding=utf8
 </code> </code>
  
vim-stuff.1503400807.txt.gz · Last modified: 2017/08/22 13:20 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki