forked from mgdm/vimrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
68 lines (53 loc) · 1.23 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
filetype off
call pathogen#infect()
call pathogen#helptags()
filetype plugin indent on
syntax on
syntax enable
set t_Co=256 " Explicitly tell Vim that the terminal supports 256 colors
let g:solarized_termcolors=256
let g:solarized_termtrans=1
colorscheme solarized
set background=dark
set ruler
set number
set showcmd
set noerrorbells
set ts=4
set sw=4
set et
set encoding=utf-8
let mapleader=","
set ignorecase
set smartcase
set gdefault
set incsearch
"set showmatch
set hlsearch
nnoremap <leader><space> :noh<cr>
set ofu=syntaxcomplete#Complete
"let g:SuperTabDefaultCompletionType = "<C-P>"
nnoremap <leader>t :NERDTreeToggle<CR>
nnoremap <leader>z :Goyo<CR>
set clipboard=unnamed
set wrap
set textwidth=0
set wrapmargin=0
set linebreak
set nolist
set formatoptions=qrn1
if exists('+colorcolumn')
set colorcolumn=80
endif
nnoremap <leader>W :%s/\s\+$//<cr>:let @/=''<CR>
vmap <C-U><C-E> :!~/.vim/bin/urlencode<CR>:s/%0a$//<CR>:s/%0a/<C-V><CR>/g<CR>
vmap <C-U><C-D> :!~/.vim/bin/urlencode -d<CR>
if has("gui_macvim")
set guifont=DejaVu\ Sans\ Mono:h12
else
set guifont=DejaVu\ Sans\ Mono\ 12
endif
au BufNewFile,BufRead *.less set filetype=less
nnoremap <F3> :NumbersToggle<CR>
set laststatus=2
let g:Powerline_colorscheme = 'solarized256'