-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
106 lines (75 loc) · 2.12 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
94
95
96
97
98
99
100
101
102
103
104
105
106
let g:jedi#goto_stubs_command = "<leader>js"
" Load Pathogen
call pathogen#infect('bundle/{}')
call pathogen#helptags()
" Map Ctrl-t to ctrlp tag lookup
let g:ctrlp_extensions = ['tag']
" Smarter working directory for CTRL-P
let g:ctrlp_working_path_mode = 'a'
nmap <silent> <C-t> :CtrlPTag<CR>
" Set the path
set path=.,,**
" Replace all instances of the word under the cursor
nnoremap <Leader>s :%s/\V\<<C-r><C-w>\>/
" Show buffer number in airline tabs
let g:airline#extensions#tabline#buffer_nr_show = 1
" Close netrw buffer after selecting a file
let g:netrw_fastbrowse = 0
" Allow undo after quitting vim
set undofile
set undodir=~/.vim/undodir//
" Command history length
set history=10000
" Color Scheme
colorscheme peachpuff
" Better tab settings
set sts=2
set shiftwidth=2
set expandtab
set smartindent
" Disable mouse support, so that the terminal handles mouse highlighting
" instead of vim
set mouse=
" Automatically read and write files as needed
set autowrite
" With these options together, we only use case sensitive search when there is a captial letter in the search term
set ignorecase
set smartcase
" Always syntax format the whole file
syntax sync fromstart
" Don't update the screen while macros are running
set lazyredraw
" completion on the command line
set wildmode=list:longest
" numbered lines
set number
" Prevents searched terms from remaining highlighted once search is done
set nohlsearch
" word wrapping
set wrap
set linebreak
" no beeps
set visualbell
" Global ignores
set wildignore+=tmp
" My Favorite font
set guifont=Inconsolata:h18.00
" Prevent extra file system events when writing files
set backupcopy=yes
" central backup directores
set backupdir=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
set directory=~/.vim-tmp,~/.tmp,~/tmp,/var/tmp,/tmp
" Disable F1 help
nmap <F1> :echo<CR>
imap <F1> <C-o>:echo<CR>
" Remap omni-completion to CTRL+Space
nmap <C-space> ea<C-n>
imap <C-space> <C-n>
" Use escape to enter normal mode in terminal
if has('nvim')
tnoremap <Esc> <C-\><C-n>
endif
" Source project local .vimrc files
set exrc
" Allow legacy snipmate parser
let g:snipMate = { 'snippet_version' : 1 }