-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc
More file actions
153 lines (121 loc) · 4.1 KB
/
Copy pathvimrc
File metadata and controls
153 lines (121 loc) · 4.1 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
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
let g:pydocstring_enable_mapping = 0
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
" plugin from http://vim-scripts.org/vim/scripts.html
Plugin 'vcscommand.vim'
Plugin 'DoxygenToolkit.vim'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
"Plugin 'Shougo/neocomplete.vim'
Plugin 'tpope/vim-dispatch'
Plugin 'SirVer/ultisnips'
Plugin 'honza/vim-snippets'
Plugin 'heavenshell/vim-pydocstring'
Plugin 'rust-lang/rust.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'godlygeek/tabular'
Plugin 'cespare/vim-toml'
Plugin 'vim-utils/vim-man'
Plugin 'tagbar'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line
set wildignore+=*.class,*.o " ignore these types of files
set wildmenu " use a menu to show available matches
set wildmode=longest:full,full " match longest common string and show menu
set completeopt=menuone,menu,longest,preview
set backup
set backupdir=$HOME/.vim/backup
set directory=$HOME/.vim/swap
" set highlighting colors to work on dark background (default xterms are black)
" set background=dark
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
let g:UltiSnipsEditSplit="vertical"
let g:UltiSnipsListSnippets="<c-l>"
let g:UltiSnipsExpandTrigger="<c-j>"
let g:UltiSnipsJumpForwardTrigger="<c-j>"
let g:UltiSnipsJumpBackwardTrigger="<c-k>"
let mapleader=','
nmap <Leader>a= :Tabularize /=<CR>
vmap <Leader>a= :Tabularize /=<CR>
nmap <Leader>a: :Tabularize /:\zs<CR>
vmap <Leader>a: :Tabularize /:\zs<CR>
nmap <F10> :TagbarToggle<CR>
"Neocomplete
"let g:neocomplete#enable_at_startup=1
"let g:neocomplete#min_keyword_length=3
" CTAGS Setup
" Look for files named "tags" in the current directory, then .., then ../.., etc...
" Also look in /some/place
" Matches in both files will be shown.
set tags=tags;/
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
"set smartindent
set number
set hlsearch
" Clear last search highlighting
map <Space> :noh<cr>
" make sure to always write to UNIX file format
set ff=unix
" Ignore whitespace in vimdiff
:set diffopt+=iwhite
nmap <F5> :make\|copen<CR>
nmap <F4> :cclose<CR>
" requires vcscommand
" Do a vimdiff against the file in the repository.
:map cv :VCSVimDiff<CR>:redraw!<CR>
:map cvb :VCSVimDiff qparent<CR>:redraw!<CR>
:map cvu :VCSVimDiff @{u}<CR>:redraw!<CR>
:map cvp :VCSVimDiff HEAD^<CR>:redraw!<CR>
" Paste Toggle
:set pastetoggle=<F10>
map <F3> :Dox<cr>
nmap du :Dox<CR>
nmap dx :DoxUndoc<CR>
filetype plugin on
let g:pydiction_location = '/home/chris/pydiction-1.2/complete-dict'
:set tabpagemax=20
if &diff
colorscheme evening
endif
:set mouse+=a
" Inspired by:
" http://vim.wikia.com/wiki/Source_vimrc_and_use_tags_in_a_parent_directory
" Source .../vimrc and ancestor of starting directory.
" useful when you have source tree eight fathom deep,
" an exercise in Vim loops.
let parent=1
let local_vimrc = "vimrc"
while parent <= 20
if filereadable(local_vimrc)
"echomsg "sourcing " . local_vimrc
exe ":so " . local_vimrc
endif
let local_vimrc = "../". local_vimrc
let parent = parent+1
" TODO: stop at the root on any system and also ~ on Unix.
endwhile
unlet parent local_vimrc
" execute pathogen#infect()