-
Notifications
You must be signed in to change notification settings - Fork 0
/
vimrc-arm
executable file
·183 lines (153 loc) · 5.44 KB
/
vimrc-arm
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
set rtp+=~/.vim/bundle/Vundle.vim/
call vundle#begin()
"Plugin 'ruby-matchit'
"Plugin 'tmhedberg/SimpylFold'
"Plugin 'vim-syntastic/syntastic'
Plugin 'The-NERD-tree'
Plugin 'VundleVim/Vundle.vim'
Plugin 'altercation/vim-colors-solarized'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'justinmk/vim-sneak'
Plugin 'kchmck/vim-coffee-script'
Plugin 'majutsushi/tagbar'
Plugin 'othree/html5.vim'
Plugin 'rhysd/vim-grammarous'
Plugin 'rizzatti/dash.vim'
Plugin 'scrooloose/nerdcommenter'
Plugin 'suan/vim-instant-markdown'
Plugin 'tomasr/molokai'
Plugin 'tommcdo/vim-lion'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-rails'
Plugin 'tpope/vim-repeat'
Plugin 'tpope/vim-surround'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'vim-scripts/matchit.zip'
Plugin 'xolox/vim-easytags'
Plugin 'xolox/vim-misc'
Plugin 'zenburn'
"All of your Plugins must be added before the following line
call vundle#end() "required
filetype plugin indent on "required
"___________________________________________________AFTER VUNDLE___________________________________________________
"Spacebar folding
nnoremap <space> za
vnoremap <space> zf
"Set default register to system clipboard
set clipboard=unnamed
"<C-P> to :CtrlP
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
"Tagbar key map
nmap <F7> :TagbarToggle<CR>
"<F5> to :buffers
nnoremap <F5> :buffers<CR>:buffer<Space>
"Map Ctrl+N to Nerd Tree
map <C-n> :NERDTreeToggle<CR>
"Keep Airline from disappearing when NERDTree is gone
set laststatus=2
"make backspace work like most other apps
set backspace=2
"For fast navigation
set relativenumber
set number
"Enable syntax highlighting
syntax enable
"Highlight search results
set hlsearch
"Jump to search results as you type
set incsearch
"4-space tabs
set softtabstop=4
set shiftwidth=4
set expandtab
"auto indent
set autoindent
"Highlight line cursor is on
set cursorline
"We can use different key mappings for easy navigation between splits to save a keystroke. So instead of ctrl-w then j, it’s just ctrl-j
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
"Open new split panes to right and bottom, which feels more natural than Vim’s default
set splitbelow
set splitright
"To get rid of annoying .swp files in every directory
set backupdir=./.backup,.,/tmp
set directory=./.backup,.,/tmp
colorscheme solarized
set background=dark
let g:airline_theme='solarized'
set t_Co=256
"Persistent undos
if !&diff
set undodir=~/.vim/undodir
set undofile
endif
"________________YouCompleteMe________________
let g:ycm_key_list_select_completion = ['<C-J>', '<Down>']
let g:ycm_key_list_previous_completion = ['<C-K>', '<Up>']
"________________YouCompleteMe________________
"__________________MARKDOWN__________________
"Turn on spell check in markdown files
autocmd FileType markdown :setlocal spell spelllang=en_us
"Set textwidth to 80 in markdown files
autocmd FileType markdown :setlocal textwidth=80
"__________________MARKDOWN__________________
"_______________vim-grammarous_______________
let g:grammarous#hooks = {}
function! g:grammarous#hooks.on_check(errs) abort
nmap <buffer>gn <Plug>(grammarous-move-to-next-error)
nmap <buffer>gp <Plug>(grammarous-move-to-previous-error)
nmap <buffer>gr <Plug>(grammarous-move-to-info-window)r
nmap <buffer>gf <Plug>(grammarous-move-to-info-window)f
nmap <buffer>gR <Plug>(grammarous-move-to-info-window)R
endfunction
function! g:grammarous#hooks.on_reset(errs) abort
nunmap <buffer>gn
nunmap <buffer>gp
nunmap <buffer>gr
nunmap <buffer>gf
nunmap <buffer>gR
endfunction
let g:grammarous#disabled_rules = {
\ '*' : ['WHITESPACE_RULE', 'EN_QUOTES'],
\ 'help' : ['WHITESPACE_RULE', 'EN_QUOTES', 'SENTENCE_WHITESPACE', 'UPPERCASE_SENTENCE_START'],
\ }
"_______________vim-grammarous_______________
"_________________Syntastic_________________
""Syntastic recommended settings
"set statusline+=%#warningmsg#
"set statusline+=%{SyntasticStatuslineFlag()}
"set statusline+=%*
"let g:syntastic_always_populate_loc_list = 1
"let g:syntastic_auto_loc_list = 1
"let g:syntastic_check_on_open = 1
"let g:syntastic_check_on_wq = 0
"let g:syntastic_scss_checkers = [ 'sass_lint' ] "Don't show warnings for include statements in scss files
""Don't show assigned but unsused variable error' in ruby
"let g:syntastic_ruby_mri_quiet_messages = {
"\ "type": "style",
"\ "regex": 'assigned but unused variable' }
"<
""Ignore warnings on meteor js
"let g:syntastic_html_tidy_quiet_messages = { "level" : "warnings" }
"let g:syntastic_html_tidy_ignore_errors = [ '<template> is not recognized!' ]
""Ignore eruby warnings
"let g:syntastic_eruby_ruby_quiet_messages =
"\ {'regex': 'possibly useless use of'}
""_________________Syntastic_________________
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 0
" let g:syntastic_python_flake8_exec = 'python3'
" let g:syntastic_python_flake8_args = ['-m', 'flake8']
let g:syntastic_check_on_open = 0
let g:syntastic_check_on_wq = 0
let g:syntastic_python_pylint_args = '--rcfile=/home/dylhua01/.pylintrc'
let g:syntastic_python_flake8_args = '--config=/home/dylhua01/.config/flake8'
let g:syntastic_aggregate_errors = 1
let g:syntastic_python_checkers = ['flake8', 'pylint', 'python']" }
""_________________Syntastic_________________