-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
43 lines (35 loc) · 780 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
43
"" Pathogen
execute pathogen#infect()
set nocompatible
syntax enable
set encoding=utf-8
set showcmd
set nu
filetype indent plugin on
set pastetoggle=<f5>
"" Whitespace
set nowrap
set tabstop=2 shiftwidth=2 softtabstop=2
set expandtab
set backspace=indent,eol,start
"" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
"" Scheme
se t_Co=256
let g:solarized_termcolors=256
set background=dark
colorscheme solarized
"" Mouse
set mouse=a
"" Remap
nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
nnoremap & :&&<CR>
xnoremap & :&&<CR>
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
" Shortcut to rapidly toggle `set list`
nmap <leader>l :set list!<CR>
" Use the same symbols as TextMate for tabstops and EOLs
set listchars=tab:▸\ ,eol:¬