Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
More general settings, powerline.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tommy Morgan committed Jun 23, 2012
1 parent 3724875 commit db54da2
Show file tree
Hide file tree
Showing 5 changed files with 93 additions and 0 deletions.
4 changes: 4 additions & 0 deletions home/.vim/config/display.vim
Original file line number Diff line number Diff line change
Expand Up @@ -30,3 +30,7 @@ au ColorScheme * highlight ExtraWhitespace guibg=red
au BufEnter * match ExtraWhitespace /\S\zs\s\+$/
au InsertEnter * match ExtraWhitespace /\S\zs\s\+\%#\@<!$/
au InsertLeave * match ExtraWhiteSpace /\S\zs\s\+$/


set encoding=utf-8 " Necessary to show unicode glyphs
set t_Co=256 " Explicitly tell vim that the terminal supports 256 colors
56 changes: 56 additions & 0 deletions home/.vim/config/editing.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
""" Global settings for editing files

" Automatically indent lines, and try to do it intelligently
set autoindent
set smartindent

" backspace behaves 'normally' (goes across lines, etc.)
set backspace=indent,eol,start
" Same for left/right nav keys.
set whichwrap+=<,>,h,l

set listchars=tab:▸\ ,eol:¬,trail:

" Use spaces instead of tabs, and
" prefer 2 spaces.
set softtabstop=2
set tabstop=2
set shiftwidth=2
set expandtab

" Automatically reload a file if it's changed outside of vim (or in another
" window)
set autoread

" wrap lines rather than make use of the horizontal scrolling
set wrap
" try not to wrap in the middle of a word
set linebreak
" use an 80-character line limit
set textwidth=80

" format settings
" t - Auto-wrap text using textwidth
" c - Auto-wrap comments using textwidth, inserting the current comment
" leader automatically.
" r - Automatically insert the current comment leader after hitting <Enter>
" in Insert mode.
" q - Allow formatting of comments with "gq".
" Note that formatting will not change blank lines or lines containing
" only the comment leader. A new paragraph starts after such a line,
" or when the comment leader changes.
" n - When formatting text, recognize numbered lists.
" 2 - When formatting text, use the indent of the second line of a paragraph
" for the rest of the paragraph, instead of the indent of the first line.
" 1 - Don't break a line after a one-letter word. It's broken before it
" instead (if possible).
set formatoptions=tcrqn21

" Automatically restore cursor position when possible
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif

" % to bounce from do to end etc.
runtime! macros/matchit.vim
31 changes: 31 additions & 0 deletions home/.vim/config/general_settings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
" Don't try to play nicely with vi
set nocompatible

" Allow buffers to be hidden, even if they're not saved.
set hidden

" Save the last 100 commands and search terms in history
set history=100

"" Short message settings:
" f - use "(3 of 5)" instead of "(file 3 of 5)"
" i - use "[noeol]" instead of "[Incomplete last line]"
" l - use "999L, 888C" instead of "999 lines, 888 characters"
" m - use "[+]" instead of "[Modified]"
" n - use "[New]" instead of "[New File]"
" r - use "[RO]" instead of "[readonly]"
" x - use "[dos]" instead of "[dos format]", "[unix]" instead of "[unix
" format]", and "[mac]" instead of "[mac format]"
" t - truncate file message at the start if it is too long to fit on the
" command-line, "<" will appear in the left most column.
" T - trunctate other messages in the middle if they are too long to fit on
" the command line. "..." will appear in the middle.
" I - don't give the intro message when starting Vim.
set shortmess=filmnrxtTI

" Stop ringing at me.
set noerrorbells

" Filetype settings and syntax should be enabled.
filetype plugin indent on
syntax on
1 change: 1 addition & 0 deletions home/.vim/config/powerline.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
let g:Powerline_symbols = "fancy"
1 change: 1 addition & 0 deletions home/.vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ call vundle#rc()
Bundle 'gmarik/vundle'
" 5) Include all of the bundles that we want to make use of.
" All of these references are to github repositories unless otherwise noted.
Bundle 'Lokaltog/vim-powerline'

""" Custom Configs include.
" All custom config settings are stored in the .vim/config folder to
Expand Down

0 comments on commit db54da2

Please sign in to comment.