-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc
90 lines (67 loc) · 1.79 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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'gmarik/Vundle.vim'
Plugin 'gnattishness/cscope_maps'
Plugin 'octol/vim-cpp-enhanced-highlight'
Plugin 'wesQ3/vim-windowswap'
Plugin 'scrooloose/nerdtree'
Plugin 'tfnico/vim-gradle'
Plugin 'Valloric/YouCompleteMe'
Plugin 'udalov/kotlin-vim'
Plugin 'keith/swift.vim'
Plugin 'easymotion/vim-easymotion'
Plugin 'a.vim'
Plugin 'cocoa.vim'
Plugin 'ctrlp.vim'
Plugin 'Syntastic'
call vundle#end()
filetype plugin indent on
set exrc
set secure
set hidden
set nowrap
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
set shiftround
set showmatch
set number
set ignorecase
set smartcase
set smarttab
set hlsearch
set incsearch
set backspace=2
set background=dark
set nobackup
set noswapfile
set mouse=a
set wrap
set linebreak
set cc=120
set listchars=eol:$,tab:>-,trail:~,extends:>,precedes:<
set encoding=utf-8
syntax on
autocmd FileType objc let g:alternateExtensions_h = "m"
autocmd FileType objc let g:alternateExtensions_m = "h"
let g:cpp_class_scope_highlight = 1
let g:cpp_experimental_template_highlight = 1
" let g:ycm_extra_conf_globlist = ['~/projects/starMobile*/*', '~/projects/oecore/*']
if has("autocmd")
filetype plugin indent on
endif
set runtimepath^=~/.vim/bundle/ctrlp.vim
noremap <leader>jd :YcmCompleter GoTo<CR>
" Vim-Arduino config
let g:arduino_board = 'arduino:avr:mega'
let g:arudino_serial_tmux = 'split-window -d'
let g:arduino_serial_port = '/dev/cu.usbmodemFA131'
let g:arduino_auto_baud = 1
let g:arduino_args = '--verbose-upload'
" vim-jsx config
let g:jsx_ext_required = 0
command CleanupChapters %s/CHAPTER\d*=.*\nCHAPTER\(\d*\)NAME=\(.*\)/\1, \2/g
command JoinSubtitles %s/\n/ / | s/\(\d\+\)\s\(\d\{2}:\d\{2}:\d\{2},\d\{3}\s-->\s\d\{2}:\d\{2}:\d\{2},\d\{3}\)\s/\r\r\1\r\2\r/g