Repository navigation
Expand file tree
/
Copy path.vimrc
More file actions
70 lines (51 loc) · 1.38 KB
/
Copy path.vimrc
File metadata and controls
70 lines (51 loc) · 1.38 KB
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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
Bundle 'gmarik/vundle'
Bundle 'spf13/vim-colors'
Bundle 'flazz/vim-colorschemes'
Bundle 'kien/ctrlp.vim'
Bundle 'vim-scripts/sessionman.vim'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-dispatch'
Bundle 'bling/vim-airline'
Bundle 'vim-scripts/bufkill.vim'
Bundle 'kien/tabman.vim'
" Pretty colors...
colorscheme solarized
" Pretty font...
" Get it from: https://github.com/adobe/Source-Code-Pro
set guifont=Source\ Code\ Pro:h11
set guioptions= "remove menu-,tool-, and scrollbars
filetype plugin indent on
" Turn on syntax highlighting
syntax on
autocmd VimEnter * :if argc() is 0 | execute ":SessionList" | endif
set encoding=utf-8
set laststatus=2
set number
" Store a ton of history (default is 20)
set history=1000
" Allow buffer switching without saving
set hidden
" Show matching brackets/parenthesis
set showmatch
" Find as you type
set incsearch
" Highlight search terms
set hlsearch
" Case insensitive search...
set ignorecase
" ...but make it case sensitive when typing upper-case.
set smartcase
" Highlight tabs and trailing whitespace
set list
set listchars=tab:→\ ,trail:.
let mapleader = ","
" <leader>e: Edit another file in same directory as the current file
if has("unix")
map <leader>e :e <C-R>=expand("%:p:h") . "/" <CR>
else
map <leader>e :e <C-R>=expand("%:p:h") . "\\" <CR>
endif