Skip to content
Browse files

Throw out old stuff from vimrc.

  • Loading branch information...
1 parent eab0601 commit 85d64db60735e0ec8eb8ca89f51464ecf9a493f5 @nelstrom committed Jan 21, 2012
Showing with 1 addition and 39 deletions.
  1. +1 −39 vimrc
40 vimrc
@@ -12,23 +12,8 @@ call pathogen#helptags()
" pathogen dynamically sets the runtimepath, like this:
" set runtimepath+=~/.vim/bundle/vim-abolish/
-let g:GetLatestVimScripts_allowautoinstall=1
" An example for a vimrc file. {{{1
-" Maintainer: Bram Moolenaar <>
-" Last change: 2008 Jul 02
-" To use it, copy it to
-" for Unix and OS/2: ~/.vimrc
-" for Amiga: s:.vimrc
-" for MS-DOS and Win32: $VIM\_vimrc
-" for OpenVMS: sys$login:.vimrc
-" When started as "evim", evim.vim will already have done these settings.
-if v:progname =~? "evim"
- finish
" Use Vim settings, rather then Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
@@ -41,16 +26,6 @@ set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
-" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
-" let &guioptions = substitute(&guioptions, "t", "", "g")
-" Don't use Ex mode, use Q for formatting
-map Q gq
-" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo,
-" so that you can undo CTRL-U after inserting a line break.
-inoremap <C-U> <C-G>u<C-U>
" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
@@ -65,20 +40,12 @@ endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
- " Enable file type detection.
- " Use the default filetype settings, so that mail gets 'tw' set to 72,
- " 'cindent' is on in C files, etc.
- " Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent on
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
- " For all text files set 'textwidth' to 78 characters.
- autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
@@ -92,10 +59,8 @@ if has("autocmd")
augroup END
set autoindent " always set autoindenting on
-endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
@@ -119,9 +84,6 @@ set listchars=tab:▸\ ,eol:¬
set wildmode=longest,list
set nrformats=
"set spelllang=en_gb
-" Put swap files in /tmp file
-set backupdir=~/tmp
-set directory=~/tmp
" Disable swapfile and backup
set nobackup
set noswapfile

0 comments on commit 85d64db

Please sign in to comment.
Something went wrong with that request. Please try again.