Skip to content

Commit

Permalink
Save changes before backing up.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeering committed Apr 1, 2013
1 parent 05c7999 commit 9bf1d8f
Showing 1 changed file with 17 additions and 30 deletions.
47 changes: 17 additions & 30 deletions vimrc
Expand Up @@ -10,44 +10,31 @@ filetype plugin indent on " Turn on file type detection.

runtime macros/matchit.vim " Load the matchit plugin.

set showcmd " Display incomplete commands.
set showmode " Display the mode you're in.

set backspace=indent,eol,start " Intuitive backspacing.

set clipboard=unnamedplus "alias unamed register to the + register, which is the X Window clipboard
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location
set expandtab " Use spaces instead of tabs
set hidden " Handle multiple buffers better.

set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.

set hlsearch " Highlight matches.
set ignorecase " Case-insensitive searching.
set smartcase " But case-sensitive if expression contains a capital letter.

set number " Show line numbers.
set ruler " Show cursor position.

set incsearch " Highlight matches as you type.
set hlsearch " Highlight matches.

set laststatus=2 " Show the status line all the time
set nobackup " Don't make a backup before overwriting a file.
set nowrap " Turn off line wrapping.
set nowritebackup " And again.
set number " Show line numbers.
set ruler " Show cursor position.
set scrolloff=3 " Show 3 lines of context around the cursor.

set shiftwidth=2 " And again, related.
set showcmd " Display incomplete commands.
set showmode " Display the mode you're in.
set smartcase " But case-sensitive if expression contains a capital letter.
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P " Useful status information at bottom of screen
set tabstop=2 " Global tab width.
set title " Set the terminal's title

set visualbell " No beeping.

set nobackup " Don't make a backup before overwriting a file.
set nowritebackup " And again.
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location

" UNCOMMENT TO USE
set tabstop=2 " Global tab width.
set shiftwidth=2 " And again, related.
set expandtab " Use spaces instead of tabs

set laststatus=2 " Show the status line all the time
" Useful status information at bottom of screen
set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P
set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.

" Or use vividchalk
colorscheme vividchalk
Expand Down

0 comments on commit 9bf1d8f

Please sign in to comment.