VIM HowTo
Hier ein kleines HowTo mit Tipps und Tricks zu vim („vi improved“). Unten findet Ihr auch meine aktuelle vimrc.local
Mehrere Dateien editieren / Navigation
Suchen
Ersetzen
die Suche unterstützt verschiedene Modifier, die werden am Ende gesetzt:
meine /etc/vim/vimrc.local
"
" magenbrot vimrc
"
" $Id: vimrc 125 2013-01-10 09:59:41Z magenbrot $
"
" Vim5 and later versions support syntax highlighting. Uncommenting the next
" line enables syntax highlighting by default.
syntax on
" If using a dark background within the editing area and syntax highlighting
" turn on this option as well
set background=dark
" Uncomment the following to have Vim jump to the last position when
" reopening a file
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif
" The following are commented out as they cause vim to behave a lot
" differently from regular Vi. They are highly recommended though.
set showcmd " Show (partial) command in status line.
set ignorecase " Do case insensitive matching
set showmatch " Show matching brackets.
set smartcase " Do smart case matching
set incsearch " Incremental search