-
Notifications
You must be signed in to change notification settings - Fork 2
/
vimrc
64 lines (46 loc) · 1.22 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
set nocompatible
filetype off
call pathogen#runtime_append_all_bundles()
filetype plugin indent on
" From http://items.sjbach.com/319/configuring-vim-right
set hidden
" Preferred keys
nnoremap ' `
nnoremap ` '
nmap ; :
let mapleader = ","
" Remember more
set history=1000
" Provide better options on tab of commands
set wildmenu
set wildmode=list:longest
" Ignore case for search ...
set ignorecase
" ... unless a case is used in the search
set smartcase
" show whitespace characters
set listchars=tab:>-,trail:·,eol:$
" toggle showing whitespace characters
nmap <silent> <leader>s :set nolist!<CR>
" Set terminal title if not using gvim
set title
" Maintain 5 lines of context around current line
set scrolloff=5
" Use a local temporary directory
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" Show row/column details in status line
set ruler
" Make backspace behave well
set backspace=indent,eol,start
" Highlight search terms
set hlsearch
" Move dynamically to search terms as they are typed
set incsearch
" Try to avoid all hit-enter prompts
set shortmess=atI
" Don't make a noise when mistakes happen
set visualbell
syntax on
runtime statusline.vim
runtime local.vim