-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
executable file
·62 lines (49 loc) · 1.59 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
" Show line numbers
set number
" Use 2 spaces for tabs, turn on automatic indenting
set tabstop=2
set smarttab
set shiftwidth=2
set autoindent
set expandtab
set backspace=start,indent
filetype on
" Turn on highlighted search and syntax highlighting
set hlsearch
set incsearch
syntax on
" Turn on line highlighting
set cursorline
" Set leader to comma
let mapleader = ","
" Set up commands for FuzzyFinder and FuzzyFinderTextMate
map <leader>t :FuzzyFinderTextMate<CR>
map <leader>b :FuzzyFinderBuffer<CR>
map <leader>f :FuzzyFinderFile<CR>
map <leader>r :FuzzyFinderMruFile<CR>
map <leader>R :ruby finder.rescan!<CR>:FuzzyFinderRemoveCache<CR>:exe ":echo 'rescan complete'"<CR>
map <leader>tl :TlistOpen<CR>
map <leader>s :Scratch<CR>
map <S-Left> gT
map <S-Right> gt
" Fuzzy options
let g:fuzzy_ignore = "*.log"
let g:fuzzy_matching_limit = 70
" Set up command for NERDTree
map <leader>n :NERDTree<CR>
" Make backspace work the way it should
set backspace=2
" Make backspace and cursor keys wrap accordingly"
set whichwrap+=<,>,h,l
" Set search to automatically show the next match while typing
set incsearch
" Make searches case-insensitive
set ignorecase
" Make editing .vimrc easier
map <leader>v :sp ~/.vimrc<CR>
map <leader>V :source ~/.vimrc<CR>:filetype detect<CR>:exe ":echo 'vimrc reloaded'"<CR>
" Generate a tags file in the current directory using Exuberant ctags
map <leader>e :silent :! ctags -R<CR>:exe ":echo 'tags generated'"<CR>
" Add a status line by default
"set statusline=%F%m%r%h%w\ [FORMAT=%{&ff}]\ [TYPE=%Y]\ [ASCII=\%03.3b]\ [HEX=\%02.2B]\ [POS=%04l,%04v][%p%%]\ [LEN=%L]
"set laststatus=2