Skip to content

Instantly share code, notes, and snippets.

@joepestro
joepestro / gist:1022126
Created June 12, 2011 23:29
Playing around with a minimap toggle for vim. When activated, gives an overview of the current window and highlights the text that was in the visible area. Still needs some tweaking.
function! ToggleMinimap()
if exists("s:isMini") && s:isMini == 0
let s:isMini = 1
else
let s:isMini = 0
end
if (s:isMini == 0)
" save current visible lines
let s:firstLine = line("w0")
@gennad
gennad / .vimrc
Created April 7, 2011 12:55
My .vimrc
set nocompatible
"Включаем распознавание типов файлов и типо-специфичные плагины:
filetype on
filetype plugin on
filetype plugin indent on
"Настройки табов для Python, согласно рекоммендациям
set tabstop=4
set shiftwidth=4