forked from amarshall/dotfiles
/
vimpagerrc
36 lines (26 loc) · 945 Bytes
/
vimpagerrc
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
" WARNING! This file is a subset of vimrc, please do not update this
" without also updating vimrc.
set nocompatible
set noloadplugins " Unique to vimpagerrc
set nowrap
set ignorecase
set incsearch
set smartcase
set expandtab
set shiftwidth=2
set tabstop=2
set list listchars=tab:»·,trail:·
set background=dark
colorscheme solarized
if(&t_Co > 2 || has("gui_running")) && !exists("syntax_on")
syntax on
nnoremap <silent> <leader>h :set hlsearch!<CR>
endif
autocmd BufRead,BufNewFile *.applescript set filetype=applescript
autocmd BufRead,BufNewFile *.json set filetype=javascript
autocmd BufRead,BufNewFile *.txt set filetype=text
" Set question mark to be part of a VIM word in Ruby
autocmd FileType ruby set iskeyword=@,48-57,_,?,!,192-255
autocmd FileType scss set iskeyword=@,48-57,_,-,?,!,192-255
" Enable soft-wrapping for text files
autocmd FileType eruby,html,markdown,text,xhtml setlocal wrap linebreak nolist