This repository has been archived by the owner on Aug 15, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Tommy Morgan
committed
Jun 23, 2012
1 parent
3724875
commit db54da2
Showing
5 changed files
with
93 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
let g:Powerline_symbols = "fancy" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters