forked from square/maximum-awesome
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc.local
48 lines (40 loc) · 1.31 KB
/
vimrc.local
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
set nocursorline " don't highlight current line
" keyboard shortcuts
inoremap jj <ESC>
:imap <leader>e <C-o>A
:imap <leader>a <C-o>I
:imap <leader>o <C-o>o
:imap <leader>O <C-o>O
" highlight search
"set hlsearch
"nmap <leader>hl :let @/ = ""<CR>
" gui settings
if (&t_Co == 256 || has('gui_running'))
set guifont=Monaco:h16
set background=light
set cursorline " highlight current line
" colors moria
highlight CursorLine guibg=#003853 ctermbg=24 gui=none cterm=none
if ($TERM_PROGRAM == 'iTerm.app')
colorscheme solarized
else
colorscheme desert
endif
endif
" set guifont=Monaco:h15
" Disambiguate ,a & ,t from the Align plugin, making them fast again.
"
" This section is here to prevent AlignMaps from adding a bunch of mappings
" that interfere with the very-common ,a and ,t mappings. This will get run
" at every startup to remove the AlignMaps for the *next* vim startup.
"
" If you do want the AlignMaps mappings, remove this section, remove
" ~/.vim/bundle/Align, and re-run rake in maximum-awesome.
function! s:RemoveConflictingAlignMaps()
if exists("g:loaded_AlignMapsPlugin")
AlignMapsClean
endif
endfunction
command! -nargs=0 RemoveConflictingAlignMaps call s:RemoveConflictingAlignMaps()
silent! autocmd VimEnter * RemoveConflictingAlignMaps
let g:syntastic_javascript_checkers = ['jshint']