-
Notifications
You must be signed in to change notification settings - Fork 0
/
.vimrc
74 lines (62 loc) · 2.19 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
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" General
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
syntax on
filetype on
colorscheme molokai
highlight Normal ctermbg=NONE
set ruler
set showcmd
set autoread
set cursorline
set tabstop=4
set shiftwidth=4
set expandtab
set smarttab
set autoindent
set history=50
" Filetype specific configuration
filetype plugin indent on
autocmd Filetype json setlocal sts=2 sw=2
autocmd Filetype ruby setlocal sts=2 sw=2
autocmd Filetype yaml setlocal sts=2 sw=2
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vundle
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'tpope/vim-fugitive'
Plugin 'pearofducks/ansible-vim'
Plugin 'fatih/vim-hclfmt'
Plugin 'fatih/vim-go'
Plugin 'elzr/vim-json'
Plugin 'stephpy/vim-yaml'
Plugin 'cespare/vim-toml'
Plugin 'hashivim/vim-terraform'
Plugin 'hashivim/vim-packer'
Plugin 'rust-lang/rust.vim'
call vundle#end()
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Vim Airline
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
set laststatus=2
let g:airline_powerline_fonts = 1
let g:airline_theme = "powerlineish"
let g:airline#extensions#tabline#enabled = 1
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Mapping
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" nmap, imap or vmap (Mapping for Normal, Insert or Visual mode)
" Available keys to map: g K q V v ^A ^K ^O ^W ^X _ * \ = F1 F2 ...
" Special keys usage: <F1> <Enter> <Space> <Esc> <PageUp> <PageDown> ...
nmap <c-x> 80a#<Esc>a<Enter><Esc>
imap <c-x> <Esc>80a#<Esc>a<Enter>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" Misc
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
if has("autocmd")
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
endif