-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
62 lines (50 loc) · 1.58 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
set nocompatible " be iMproved
filetype off " required to get Vundle to work, it's enabled later on
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" let Vundle manage Vundle
" required!
Plugin 'gmarik/Vundle.vim'
" Other plugins Vundle manages
Bundle 'scrooloose/syntastic'
Bundle 'rodjek/vim-puppet'
Bundle 'Valloric/YouCompleteMe'
Bundle 'godlygeek/tabular'
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle "tomtom/tlib_vim"
Bundle 'honza/vim-snippets'
Bundle 'SirVer/ultisnips'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on
let g:ycm_key_list_select_completion=['<C-n>', '<Down>']
let g:ycm_key_list_previous_completion=['<C-p>', '<Up>']
let g:UltiSnipsExpandTrigger="<Tab>"
let g:UltiSnipsJumpForwardTrigger="<Tab>"
let g:UltiSnipsJumpBackwardTrigger="<S-Tab>"
set nonumber
set backspace=indent,eol,start
set showmatch
set expandtab
set tabstop=2
set softtabstop=2
set shiftwidth=2
set ai
set viminfo='10,\"100,:20,%,n~/.viminfo
" use 4 spaces in Python and PowerShell
autocmd FileType python setlocal ts=4 sts=4 sw=4
syntax on
" Make encrypting strings and inserting in to document super easy ;)
command -nargs=1 Eyaml :read !eyaml encrypt -o block -s <args> 2> /dev/null
" Ensure that vim returns to the last position you were in the file you opened
function! ResCur()
if line("'\"") <= line("$")
normal! g`"
return 1
endif
endfunction
augroup resCur
autocmd!
autocmd BufWinEnter * call ResCur()
augroup END