" Preventing pain set nocompatible set autochdir set backspace=2 set backupdir=%TEMP% set nobackup set confirm set directory=%TEMP% set encoding=utf-8 set ignorecase set smartcase set mouse= set noerrorbells set t_vb= set visualbell " Look and feel set background=dark set hlsearch set incsearch set laststatus=2 set linebreak set matchpairs+=<:> set number set numberwidth=3 set ruler set showcmd set sidescroll=1 set splitbelow set splitright " Indents and tabspacing set autoindent set copyindent set noexpandtab set shiftwidth=3 set softtabstop=3 set tabstop=3 " I fold. set foldmethod=marker " Yay syntax highlighting filetype indent on filetype plugin on syntax on " Unix-specific: {{{ if has("unix") set backupdir=~/tmp set directory=~/tmp set novisualbell " For vim-latex {{{ " IMPORTANT: grep will sometimes skip displaying the file name if you " search in a singe file. This will confuse Latex-Suite. Set your grep " program to always generate a file-name. set grepprg=grep\ -nH\ $* " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to " 'plaintex' instead of 'tex', which results in vim-latex not being loaded. " The following changes the default filetype back to 'tex': let g:tex_flavor='latex' " Make for split movement work again nmap IMAP_JumpForward " }}} " From rson " Quickly save a file as root cmap w!! %!sudo tee > /dev/null % endif "}}} " Fast split movement nmap j nmap k nmap h nmap l