Added xrandr script.
[tomn-dotfiles.git] / .gvimrc
blob71ed7a5ac52f0b7a32a43a7714b8020cbfef91c3
1 set nocompatible                                        " ignore Vi compatibility
2 if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
3     set fileencodings=utf-8,latin1
4 endif
5 set autoindent                                          " automatic indentation
6 set hlsearch                                                    " highlight search
7 set incsearch                                                   " incremental search
8 set ignorecase                                          " ignore case
9 set ruler                                                                       " ruler to show current location
11 "set showmatch                                                  " show matching braces
12 set shiftwidth=2
13 set tabstop=2                                                   " tab size = 2 spaces
14 "colorscheme slate
15 colorscheme jellybeans
16 set nu                                                                          " show line numbers
17 syntax on                                                                       " show syntax higlightk
19 "set cursorline                                         " highlight current line
20 "set guifont=Terminus\ 10
21 set guifont=Monaco\ 8
23 "set guifont=Monospace\ 7
24 set list
25 set listchars=tab:•\ ,trail:· 
26 set co=90
27 set lines=101
29 "Fix the stupid auto-indentation deletion
30 inoremap <CR> <CR><Space><BS>
31 nnoremap o o<Space><BS>
32 nnoremap O O<Space><BS>
34 "Highlight Long lines (>80chrs):
35 :let w:m1=matchadd('Search', '\%>79v.\+', -1)
36 " :let w:m2=matchadd('ErrorMsg', '\%>80v.\+', -1)
38 set nobackup
39 set noswapfile
40 set nowritebackup
41 set guioptions-=m
42 set guioptions-=T
44 "set tw=80                                                                      " auto-wrap long lines