Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 119 lines (91 sloc) 3.016 kb
4633655 @olauzon Try Menlo
authored
1 " set guifont=Monaco:h16
89b15a7 @olauzon Colors
authored
2 " set guifont=Menlo:h16
4404f65 @olauzon Add commented Lekton typeface (via @theIV)
authored
3 " http://www.google.com/webfonts/family?family=Lekton&subset=latin
b23515f @olauzon Make text size a little smaller
authored
4 set guifont=Lekton:h18
afb107d @olauzon Added jquery.vim
authored
5
0b728a9 @olauzon Initial import
authored
6 set number
7 set go-=T
8
afb107d @olauzon Added jquery.vim
authored
9 set hidden
89b15a7 @olauzon Colors
authored
10 set nowrap
afb107d @olauzon Added jquery.vim
authored
11
973a7ae @olauzon Trying pathogen.vim
authored
12 " Needed on some linux distros.
13 " see http://www.adamlowe.me/2009/12/vim-destroys-all-other-rails-editors.html
0f2b9df @olauzon Update bundles
authored
14 filetype off
973a7ae @olauzon Trying pathogen.vim
authored
15 call pathogen#helptags()
16 call pathogen#runtime_append_all_bundles()
17
f3c2b43 @olauzon Make text a little smaller
authored
18 let g:syntastic_enable_signs=1
19 let g:syntastic_auto_loc_list=1
20
afb107d @olauzon Added jquery.vim
authored
21 " Show invisible characters
22 set list
23 " Shortcut to toggle `set list`
24 nmap <leader>l :set list!<CR>
f222ec4 @olauzon Updated bundles using update_bundles script. Removed the fuzzy finder…
authored
25
afb107d @olauzon Added jquery.vim
authored
26 " Use the same symbols as TextMate for tabstops and EOLs
27 set listchars=tab:\ ,eol:¬
28
0b728a9 @olauzon Initial import
authored
29 :syntax on
afb107d @olauzon Added jquery.vim
authored
30
0b728a9 @olauzon Initial import
authored
31 filetype plugin indent on
32
33 augroup myfiletypes
34 " Clear old autocmds in group
35 autocmd!
f73b6e2 @olauzon Fix jslint.vim load error
authored
36 autocmd BufNewFile,BufRead *.clj* setf clojure
0b728a9 @olauzon Initial import
authored
37 autocmd BufNewFile,BufRead *.json_builder setf ruby
38 autocmd BufNewFile,BufRead *.red setf ruby
afb107d @olauzon Added jquery.vim
authored
39 autocmd BufNewFile,BufRead *.erl set ai sw=4 sts=4 et
40 autocmd BufNewFile,BufRead *.js set ft=javascript.jquery
c2bcbbb @olauzon Add JSON syntax and Mac Classic color scheme (for special occasions)
authored
41 autocmd BufNewFile,Bufread *.json set ft=json
91a5dd8 @olauzon Chill on the 80 char highlighting
authored
42 autocmd BufNewFile,Bufread *.bones set ft=javascript
4bd45fe @olauzon Put all swap files together
authored
43 autocmd BufNewFile,Bufread *.jst set ft=mustache
0b728a9 @olauzon Initial import
authored
44 augroup END
45
afb107d @olauzon Added jquery.vim
authored
46 set ts=2
0b728a9 @olauzon Initial import
authored
47 set sts=2
48 set sw=2
49 set autoindent
50 set smarttab
afb107d @olauzon Added jquery.vim
authored
51 set expandtab
0b728a9 @olauzon Initial import
authored
52
80d9a22 @olauzon Use solarized color scheme for Summer
authored
53 " :colorscheme vividchalk
8d9b742 @olauzon Add solarized color scheme
authored
54 set background=dark
89b15a7 @olauzon Colors
authored
55 :colorscheme aftereight
56 " :colorscheme anotherdark
57 " :colorscheme candycode
58 " :colorscheme solarized
8d9b742 @olauzon Add solarized color scheme
authored
59 " :colorscheme mac_classic
0b728a9 @olauzon Initial import
authored
60
61 " window splitting mappings
62 nmap <leader>v :vsplit<CR> <C-w><C-w>
63 nmap <leader>s :split<CR> <C-w><C-w>
64
9dfc047 @olauzon Use janus-style NERDTree
authored
65 " NERDTree
89b15a7 @olauzon Colors
authored
66 let NERDTreeShowHidden=1
9dfc047 @olauzon Use janus-style NERDTree
authored
67
68 " 'wycats' style NERDTree
69 let NERDTreeDirArrows = 1
70 let NERDTreeMouseMode = 3
71
afb107d @olauzon Added jquery.vim
authored
72 " Shortcut to toggle nerd tree
0b728a9 @olauzon Initial import
authored
73 map <leader>d :execute 'NERDTreeToggle ' . getcwd()<CR>
afb107d @olauzon Added jquery.vim
authored
74
75 " Shortcut to delete trailing whitespace
76 nmap <leader>w :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
77
78 " Highlight lines longer than 80 characters
91a5dd8 @olauzon Chill on the 80 char highlighting
authored
79 " match ErrorMsg '\%>80v.\+'
80 set colorcolumn=81
7105693 @olauzon Added kj keystroke map to escape
authored
81
4bd45fe @olauzon Put all swap files together
authored
82 " Hard wrap at column 80
83 set textwidth=80
84
7105693 @olauzon Added kj keystroke map to escape
authored
85 inoremap kj <Esc>
1572916 @olauzon Add vim-latex for fun & prophet
authored
86
87 " IMPORTANT: grep will sometimes skip displaying the file name if you
88 " search in a singe file. This will confuse Latex-Suite. Set your grep
89 " program to always generate a file-name.
90 set grepprg=grep\ -nH\ $*
91
92 " OPTIONAL: Starting with Vim 7, the filetype of empty .tex files defaults to
93 " 'plaintex' instead of 'tex', which results in vim-latex not being loaded.
94 " The following changes the default filetype back to 'tex':
95 let g:tex_flavor='latex'
96
3649ebc @olauzon Update bundles
authored
97 " TIP: if you write your \labels as \label{fig:something}, then if you
1572916 @olauzon Add vim-latex for fun & prophet
authored
98 " type in \ref{fig: and press <C-n> you will automatically cycle through
99 " all the figure labels. Very useful!
100 set iskeyword+=:
f73b6e2 @olauzon Fix jslint.vim load error
authored
101
102 " Fix jslint.vim error according to
103 " https://github.com/hallettj/jslint.vim/issues/13
104 let $JS_CMD='node'
f4d1942 @olauzon Format text with par
authored
105
106 " Remove scrollbars
107 set go-=L
108 set guioptions-=r
109
110 " Fullscreen
111 " :set fu
112
113 " Text formatting with par http://www.nicemice.net/par/
114 " brew install par
115 set formatprg=par\ -w80r
116 nmap <leader>f gqip<CR>
4bd45fe @olauzon Put all swap files together
authored
117
118 set directory^=$HOME/.vim_swap// "put all swap files together in one place
Something went wrong with that request. Please try again.