/[config]/vimrc

Contents of /vimrc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 58 - (show annotations) (download)
Mon Jul 12 14:19:39 2010 PDT (7 weeks, 6 days ago) by hulet
File size: 5556 byte(s)
adjust vim highlight color, word wrapping
1 " ~/.vimrc
2 "
3 " $Revision$
4 " $Date$
5 " $Author$
6 "
7
8 " Use Vim settings, rather then Vi settings (much better!).
9 " This must be first, because it changes other options as a side effect.
10 set nocompatible
11
12 " taglist
13 "let Tlist_Ctags_Cmd = '/apollo/env/envImprovement/bin/ctags'
14 "let Tlist_Inc_Winwidth = 0
15 nnoremap <silent> <F8> :TlistToggle<CR>
16
17 " toggles
18 noremap \ts :set spell!<CR>
19 noremap \tw :set wrap!<CR>
20 noremap \tp :set paste!<CR>
21
22 " colors
23 highlight DiffAdd term=reverse cterm=bold ctermbg=green ctermfg=black
24 highlight DiffChange term=reverse cterm=bold ctermbg=cyan ctermfg=black
25 highlight DiffText term=reverse cterm=bold ctermbg=yellow ctermfg=black
26 highlight DiffDelete term=reverse cterm=bold ctermbg=red ctermfg=black
27 highlight Search term=reverse cterm=bold ctermbg=magenta ctermfg=black
28
29 "set autoindent " always set autoindenting on (do we want this?)
30 "set smartindent
31 "set smarttab
32 set cindent
33 set backspace=2 " allow backspacing over everything in insert mode
34 set diffopt=filler,iwhite " for vimdiff (add scrollbind if needed)
35 set expandtab " Get rid of tabs altogether and replace with spaces
36 "set foldcolumn=2 " set a column incase we need it (err on don't show)
37 set foldlevel=0 " all folds closed
38 set foldmethod=indent " use indentation to detrmine fold location
39 set guioptions-=m " Remove menu from the gui
40 set guioptions-=T " Remove toolbar
41 "set hidden " hide buffers instead of closing
42 set history=50 " keep 50 lines of command line history
43 set ignorecase " Do case insensitive matching
44 set incsearch " show partal match as searching strings are typed
45 set laststatus=1 " status bar only on multipule windows
46 set linebreak " This displays long lines as wrapped at word boundries
47 set matchtime=2 " Time to flash the brack with showmatch
48 set modeline " Look for modelines
49 set modelines=1000 " Check this many lines for a modeline
50 "set nobackup " Don't keep a backup file
51 "set nocompatible " Use Vim defaults (much better!) see above
52 set nofen " disable folds
53 "set notimeout " i like to be pokey
54 "set nottimeout " take as long as i like to type commands
55 set ruler " show the cursor position all the time
56 set scrolloff=4 " dont let the curser get too close to the edge
57 set shiftwidth=4 " Set indention level to be the same as softtabstop
58 set showbreak=+++ " String to put at the start of lines that have been wrapped
59 set showcmd " Show (partial) command in status line.
60 set showmatch " Show matching brackets.
61 set softtabstop=4 " Why are tabs so big? This fixes it
62 "set textwidth=0 " Don't wrap words by default
63 "set textwidth=80 " This wraps a line with a break when you reach 80 chars
64 "set timeoutlen=10000 " Time to wait for a map sequence to complete
65 "set ttimeoutlen=10000 " time to wait for a key code to complete
66 "set virtualedit=block " let blocks be in virutal edit mode (not sure what this does)
67 set wildmenu " This is used with wildmode(full) to cycle options
68
69 set showmode " display the current mode in the status line
70 set smartcase " if search has any caps, do case sensetive search
71 set matchpairs+=<:> " have % bounce between <, >, as well as t'other kinds
72 set hlsearch " highlight the last used search pattern
73
74 set nowrap " don't wrap long lines
75 set sidescroll=10 " sidescroll this many lines at a time
76 set listchars=extends:>,precedes:< " display these when long lines leave the screen
77 set sidescrolloff=4 " keep a buffer of this many chars on the sides
78 set report=0 " always tell me when something happens, if even to just 1 line
79
80 set cinkeys-=0# " don't force perl comments to the beginning of the line
81 au FileType c,cpp set cinkeys+=0# " except when they're pre-processor directives in c/c++
82 ":inoremap # X# " this prolly does the same thing?
83 set nrformats= "C-A and C-X should only work on decimal numbers
84
85 "Turn on syntax highlighting
86 syntax on
87
88 set wildmode=list:longest,full " list all options, match to the longest
89
90 filetype plugin on " allow plugin files (:h filetype-plugin)
91 filetype indent on " allow indent files (:h filetype-indent)
92
93 " mason stuff
94 "au syntax mason so /usr/share/vim/vim63/syntax/mason.vim
95 "au BufNewFile,BufRead *.mas set ft=mason
96 "
97 au BufNewFile,BufRead *.rthm set ft=eruby
98 au BufNewFile,BufRead *.rthml set ft=eruby
99 au BufNewFile,BufRead *.rjs set ft=eruby
100 au BufNewFile,BufRead *.rxml set ft=eruby
101 au BufNewFile,BufRead *.rake set ft=ruby
102
103 " Use ;c to change the current buffer's local directory to the directory containing the file
104 map ;c :execute ":lcd ". expand("%:h")<CR>
105
106 " Use ;f to capture the current file name's full file name into the buffer f
107 map ;f :let @f=expand("%:p")<CR>
108
109 " Use ,o to open a window in the directory of the file currently being edited.
110 map ,o :execute ":e " . expand("%:p:h")<CR>
111 map ,O :execute ":new " . expand("%:p:h")<CR>
112
113 " Use ,e to start an execute command to edit a file in the directory of the file currently being edited.
114 map ,e :let @i = expand("%:p:h"):e <C-R>i/
115 map ,E :let @i = expand("%:p:h"):new <C-R>i/

Properties

Name Value
svn:keywords Revision Date Author

  ViewVC Help
Powered by ViewVC 1.1.2