-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.vimrc
150 lines (122 loc) · 3.52 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
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
set nocompatible
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" Plugins
Bundle 'gmarik/vundle'
Bundle 'tpope/vim-fugitive'
Bundle 'scrooloose/nerdtree'
Bundle 'mileszs/ack.vim'
Bundle 'vim-scripts/ZoomWin'
Bundle 'ervandew/supertab'
Bundle 'tpope/vim-endwise'
" Bundle 'scrooloose/syntastic'
Bundle 'w0rp/ale'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'kien/ctrlp.vim'
Bundle 'tmhedberg/matchit'
" Syntaxes
Bundle 'vim-ruby/vim-ruby'
Bundle 'tpope/vim-rails'
Bundle 'tpope/vim-markdown'
Bundle 'groenewege/vim-less'
Bundle 'pangloss/vim-javascript'
Bundle 'mxw/vim-jsx'
Bundle 'toyamarinyon/vim-swift'
Bundle 'fatih/vim-go'
Bundle 'othree/yajs.vim'
Bundle 'wavded/vim-stylus'
Bundle 'leafgarland/typescript-vim'
Bundle 'jparise/vim-graphql'
" Bundle 'Quramy/tsuquyomi'
" Color schemes
Bundle 'altercation/vim-colors-solarized'
Bundle 'baeuml/summerfruit256.vim'
call vundle#end()
filetype on
filetype indent on
filetype plugin on
" Custom Settings
set expandtab
set tabstop=2 shiftwidth=2 softtabstop=2
set autoindent
set nowrap
set number " Show line numbers
set ruler " Show line and column number
syntax enable " Turn on syntax highlighting allowing local overrides
set encoding=utf-8 " Set default encoding to UTF-8
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
map <Leader>t :NERDTreeToggle<CR>
map <Leader>z :ZoomWin<CR>
set list
set listchars=""
set listchars=tab:\ \
set listchars+=trail:.
set listchars+=extends:>
set listchars+=precedes:<
set hlsearch " highlight matches
set incsearch " incremental searching
set ignorecase " searches are case insensitive...
set smartcase " ... unless they contain at least one capital letter
" Disable output and VCS files
set wildignore+=*.o,*.out,*.obj,.git,*.rbc,*.rbo,*.class,.svn,*.gem
" Disable archive files
set wildignore+=*.zip,*.tar.gz,*.tar.bz2,*.rar,*.tar.xz
" Ignore bundler and sass cache
set wildignore+=*/vendor/gems/*,*/vendor/cache/*,*/.bundle/*,*/.sass-cache/*
" Disable temp and backup files
set wildignore+=*.swp,*~,._*
set backupdir=~/.vim/_backup// " where to put backup files.
set directory=~/.vim/_temp// " where to put swap files.
if has("statusline") && !&cp
set laststatus=2 " always show the status bar
" Start the status line
set statusline=%f\ %m\ %r
set statusline+=Line:%l/%L[%p%%]
set statusline+=Col:%v
set statusline+=Buf:#%n
set statusline+=[%b][0x%B]
endif
map <Down> gj
map <Up> gk
" CtrlP
let g:ctrlp_match_window_bottom = 1
let g:ctrlp_match_window_reversed = 0
let g:ctrlp_max_height = 10
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](.git|.hg|.svn|node_modules|tmp)$',
\ }
set background=dark
colorscheme solarized
let g:syntastic_java_checker = 'checkstyle'
let g:jsx_ext_required = 0
let g:ale_completion_enabled = 0
let g:ale_fix_on_save = 1
let g:ale_fixers = {
\ 'javascript': [
\ 'eslint', 'prettier',
\ ],
\ 'javascriptreact': [
\ 'eslint', 'prettier',
\ ],
\ 'typescript': [
\ 'eslint', 'prettier',
\ ],
\ 'typescriptreact': [
\ 'eslint', 'prettier',
\ ],
\ 'json': [
\ 'eslint', 'prettier',
\ ],
\}
let g:ale_linters = {
\ 'typescript': [
\ 'eslint', 'tsserver', 'prettier',
\ ],
\}
let g:ale_javascript_prettier_use_local_config = 1
let not_loaded_cscope=1
let $PATH=$PATH . ':/Users/inbeom/.nvm/versions/node/v18.11.0/bin'
set exrc
set secure