-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvimrc
More file actions
88 lines (69 loc) · 1.79 KB
/
vimrc
File metadata and controls
88 lines (69 loc) · 1.79 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#rc()
Bundle 'gmarik/vundle'
" original repos on GitHub
Bundle 'tpope/vim-rails.git'
Bundle 'tpope/vim-bundler.git'
Bundle 'tpope/vim-fugitive'
Bundle 'tpope/vim-endwise.git'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'myusuf3/numbers.vim'
Bundle 'ervandew/supertab'
Bundle 'mattn/emmet-vim'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/nerdcommenter'
Bundle 'airblade/vim-gitgutter'
Bundle 'othree/yajs.vim'
Bundle 'kien/ctrlp.vim'
Bundle 'junegunn/fzf.vim'
" Go Lang
Bundle 'fatih/vim-go'
" Elixir
Bundle 'elixir-lang/vim-elixir'
Bundle 'slashmili/alchemist.vim'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non-GitHub repos
" Bundle 'git://git.wincent.com/command-t.git'
Bundle 'wincent/Command-T'
" Tabular
Bundle 'godlygeek/tabular'
" Snipmate snippets
Bundle 'MarcWeber/vim-addon-mw-utils'
Bundle 'tomtom/tlib_vim'
Bundle 'garbas/vim-snipmate'
Bundle 'honza/vim-snippets'
" Airline!
Bundle 'bling/vim-airline'
" Theme
Plugin 'dracula/vim'
filetype plugin indent on " required!
" keys
:nnoremap <Leader>p :NERDTreeToggle<cr>
:nnoremap <Leader>n :NERDTreeToggle<cr>
:nnoremap <Leader>t :Tab /:\zs<cr>
:set list!
:set listchars=tab:>-,trail:.
:set tabstop=2
:set shiftwidth=2
:set smarttab
:set expandtab
:set noswapfile
" Settings to numbers
:set number
:au FocusGained * :set relativenumber
map <C-c> "+yy
map <C-v> "+p
map <C-x> "+dd
:filetype plugin on
:syntax on
autocmd BufNewFile,BufReadPost *.ino,*.pde set filetype=cpp
autocmd BufNewFile,BufReadPost *.arb set filetype=ruby
autocmd BufNewFile,BufReadPost *.es6 set filetype=javascript
autocmd BufRead,BufNewFile,BufEnter ~/projects/go_projects/* setlocal ts=2 sts=2 sw=2
let g:auto_save = 0
let g:auto_save_in_insert_mode = 0