-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvimrc.backup
More file actions
72 lines (57 loc) · 2.21 KB
/
vimrc.backup
File metadata and controls
72 lines (57 loc) · 2.21 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
"File type tab settings
autocmd Filetype ruby setlocal tabstop=2 shiftwidth=2 expandtab
autocmd Filetype python setlocal tabstop=4 shiftwidth=4 expandtab
" NERDTree config, set leader
let mapleader = '\'
nmap <leader>t :NERDTree<cr>
" syntastic config options
let g:syntastic_mode_map = { 'mode': 'passive',
\ 'active_filetypes': [],
\ 'passive_filetypes': [] }
let g:syntastic_auto_loc_list=1
" by default only location list only updated when
" :Errors command is run with the below command
" always update location list when checkers run
let g:syntastic_always_populate_loc_list=1
" nmap <leader>c :SyntasticCheck<cr>
" nnoremap <silent> <F5> :SyntasticCheck<CR>
" nnoremap <silent> <F4> :lclose<CR>
" nnoremap <silent> <F3> :SyntasticReset<CR>
" syntastic file checkers, view a full list of file checkers with :help syntastic-checkers
" a checker listed in [] brackets will tell syntastic what to use automatically on :SyntasticCheck
" the syntax for each checker follows below pattern
" let g:syntastic_<filetype>_checkers = ['checker-name']
" to tell syntastic what executable version to run provide path
" let g:syntastic_ruby_ruby_exec = 'path/to/ruby/version'
let g:syntastic_ruby_checkers = ['mri', 'rubocop']
let g:syntastic_ruby_ruby_exec = '~/.rvm/rubies/ruby-2.3.0/bin/ruby'
let g:syntastic_python_checkers = ['flake8']
let g:syntastic_python_python_exec = '/usr/bin/python3'
" config options for vanilla vim
set nu
set cursorline
set cursorcolumn
" nohlsearch or noh command hides highlighting
set hlsearch
" <Ctrl-l> redraws the screen and removes and search highlighting
nnoremap <silent> <C-l> :nohl<CR><C-l>
" set color for vertical bar
highlight LineNr ctermfg = grey
" set color scheme
colorscheme slate
" other color schemes
" colorscheme elflord
" required to have airline plugin display
set laststatus=2
" function is in vcomments, config here
source ~/vcomments.vim
map <C-a> :call Comment()<CR>
map <C-b> :call Uncomment()<CR>
" plugins, managed with vimplug
call plug#begin()
Plug 'scrooloose/nerdtree'
Plug 'easymotion/vim-easymotion'
Plug 'bronson/vim-trailing-whitespace'
Plug 'vim-airline/vim-airline'
Plug 'scrooloose/syntastic'
call plug#end()