User Tools

Site Tools


vim-stuff

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
vim-stuff [2017/12/22 17:35] baumivim-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:
 +
 +<code>
 +$ vim -o file1 file2    # horizontal split
 +$ vim -O file1 file2    # vertical split
 +</code>
 ===== Tabs ===== ===== Tabs =====
 <code> <code>
Line 18: Line 24:
 </code> </code>
  
-===== 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>
 +"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>
  
 {{tag>kb vim}} {{tag>kb vim}}
  
  
vim-stuff.1513960549.txt.gz · Last modified: 2017/12/22 17:35 by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki