forked from netpoetica/dotvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
106 lines (79 loc) · 2.05 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
runtime bundle/vim-pathogen/autoload/pathogen.vim
call pathogen#infect()
syntax on
filetype plugin indent on
colorscheme badwolf
set hidden
" cold folding
set foldmethod=indent "fold based on indent
" set foldnestmax=10 "deepest fold is 10 levels
set nofoldenable "dont fold by default
set foldlevel=1 "this is just what i use
" Show the cursor position
set ruler
set smarttab
" Enhance command-line completion
set wildmenu
" Always show status line
set laststatus=2
set autoread
set guifont=Menlo\ for\ Powerline
set spell
" Use the OS clipboard by default (on versions compiled with `+clipboard`)
set clipboard=unnamed
" searching
set incsearch " highlight dynamically as pattern is typed
set hlsearch " highlight searches
set ignorecase " ignore case of searches
set smartcase
" don't jump over text-wrapped lines
map j gj
map k gk
map <down> g<down>
map <up> g<up>
" toggle search highlight
map <space> :set hlsearch! hlsearch?<CR>
" keep visual mode selection when indenting
vmap > >gv
vmap < <gv
" forward and back in buffers
nmap <tab> :bnext<CR>
nmap <S-tab> :bprev<CR>
" always use ZoomWin
nmap <unique> <c-w><c-o> <Plug>ZoomWin
set rtp+=~/.vim/bundle/powerline/powerline/bindings/vim
let g:ctrlp_regexp = 1
let g:ctrlp_extensions = ['tag']
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'cd %s && git ls-files'],
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
\ },
\ }
let erlang_show_errors = 0
" ''''''''''''''''''''''''''''''
" Allow backspace in insert mode
set backspace=indent,eol,start
" Centralize backups, swapfiles and undo history
set backupdir=~/.vim/backups
set directory=~/.vim/swaps
if exists("&undodir")
set undodir=~/.vim/undo
endif
" Don’t add empty newlines at the end of files
set binary
set noeol
" Expand tabs to spaces
set shiftwidth=1
set expandtab
" Enable line numbers
set number
" Highlight current line
set cursorline
" Make tabs as wide as two spaces
set tabstop=2
" Show “invisible” characters
set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
set list
" Disable error bells
set noerrorbells