forked from gswirski/.dot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvimrc
59 lines (45 loc) · 1.24 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
set nocompatible
call pathogen#infect() "Use pathogen for bundle management
let mapleader="," "Set the best leader
set encoding=utf-8 "Set encoding
set hidden "Better buffer behavior
" Look and feel
set number
set ruler
syntax on
set laststatus=2 " Status bar
" Whitespace stuff
set nowrap
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set list listchars=tab:\ \ ,trail:·
" Remove all trailing whitespace
autocmd FileType c,cpp,php,rb,py autocmd BufWritePre * :%s/\s\+$//e
" Smoother scrolling
set scrolloff=3
nnoremap <Space> <C-d>
" Searching
set hlsearch
set incsearch
set ignorecase
set smartcase
" Tab completion
set wildmode=list:longest,list:full
set wildignore+=*.o,*.obj,.git,*.rbc,*.class,.svn,vendor/gems/*
" Allow backspacing over everything in insert mode
set backspace=indent,eol,start
" Load the plugin and indent settings for the detected filetype
filetype plugin indent on
" Directories for swp files
set backupdir=~/.vim/backup
set directory=~/.vim/backup
" Show (partial) command in the status line
set showcmd
" Escaping from insert mode
inoremap jj <ESC>
" FuzzyFinder configuration
map <Leader>n :FufFileWithCurrentBufferDir<CR>
map <Leader>b :FufBuffer<CR>
map <Leader>t :FufBufferTag<CR>