/
vimrc
93 lines (67 loc) · 2.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
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
"""""""""""""""
""" Setting """
"""""""""""""""
set nocompatible " Changes other options.
syntax enable " Turn on syntax highlighting.
filetype plugin indent on " Turn on file type detection.
set showcmd " Display incomplete commands.
set showmode " Display the mode you're in.
set ruler " Show cursor position.
set backspace=indent,eol,start " Intuitive backspacing.
set hidden " Handle multiple buffers better.
set wildmenu " Enhanced command line completion.
set wildmode=list:longest " Complete files like a shell.
set ignorecase " Case-insensitive searching.
set smartcase " Case-sensitive if it contains a capital.
set incsearch " Highlight matches as you type.
set hlsearch " Highlight matches.
set nobackup " Don't backup before overwriting a file.
set nowritebackup " And again.
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location.
set tabstop=2 " Global tab width.
set shiftwidth=2 " And again, related.
set expandtab " Use spaces instead of tabs.
""""""""""""
""" Keys """
""""""""""""
let mapleader=","
"""""""""""""""
""" Plugins """
"""""""""""""""
"
" Install Pathogen
" http://www.vim.org/scripts/script.php?script_id=2332
"
call pathogen#runtime_append_all_bundles()
"
" Install Rooter
" https://github.com/airblade/vim-rooter
"
"
" Install NERD tree
" http://www.vim.org/scripts/script.php?script_id=1658
"
map <Leader>n :NERDTreeToggle<CR>
"
" Install Ack.vim (requires ack)
" http://www.vim.org/scripts/script.php%3Fscript_id%3D2572
"
map <Leader>a :Ack<space>
"
" Install Gist.vim (requires git)
" http://www.vim.org/scripts/script.php?script_id=2423
"
map <Leader>g :Gist<space>
"
" Install Surround.vim
" http://www.vim.org/scripts/script.php?script_id=1697
"
"
" Install Repeat.vim
" http://www.vim.org/scripts/script.php?script_id=2136
"
"
" Install NERD Commenter
" http://www.vim.org/scripts/script.php?script_id=1218
"
map <Leader>/ <plug>NERDCommenterToggle<CR>