-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
42 lines (34 loc) · 974 Bytes
/
vimrc
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
if &t_Co > 1
let &t_Co = 256
syntax on
endif
set autoindent
set mouse=a
set number
set nobackup
set noundofile
set tabstop=2
set shiftwidth=2
set expandtab
set hlsearch
set laststatus=2
let g:airline_powerline_fonts = 1
execute pathogen#infect()
filetype plugin indent on
set background=dark
colorscheme jellybeans
" Highlight characters past column 80.
highlight OverLength ctermbg=red ctermfg=white guibg=#592929
match OverLength /\%81v.\+/
" Disable tab expansion for Makefiles.
au BufNewFile,BufRead Makefile set noexpandtab
" Handle tmux $TERM quirks in vim.
if $TERM =~ '^screen-256color'
map <Esc>OH <Home>
map! <Esc>OH <Home>
map <Esc>OF <End>
map! <Esc>OF <End>
endif
" Tab2Space/Space2Tab commands.
:command! -range=% -nargs=0 Tab2Space execute '<line1>,<line2>s#^\t\+#\=repeat(" ", len(submatch(0))*' . &ts . ')'
:command! -range=% -nargs=0 Space2Tab execute '<line1>,<line2>s#^\( \{'.&ts.'\}\)\+#\=repeat("\t", len(submatch(0))/' . &ts . ')'