Skip to content

Commit a342027

Browse files
committed
vim config cleanup
Signed-off-by: Adrian Juszczak <[email protected]>
1 parent df2412b commit a342027

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.gvimrc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ set guioptions-=T " remove toolbar
44
set guioptions-=r " remove right-hand scroll bar
55
set guioptions-=L " remove left-hand scroll bar
66
set guioptions-=M " extreme: does not source the menu script
7-
set guifont=Source\ Code\ Pro:h12
7+
set guifont=Source\ Code\ Pro:h13
88
set guicursor=a:blinkon0
99

1010
if has('gui_macvim')

.vim/undodir/.gitkeep

Whitespace-only changes.

.vimrc

+7-8
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,9 @@ set viewoptions=
8484
vnoremap J :m '>+1<cr>gv=gv
8585
vnoremap K :m '<-2<cr>gv=gv
8686
87+
cnoremap <c-p> <Up>
88+
cnoremap <c-n> <Down>
89+
8790
if !has('gui_running')
8891
function! ToggleCopyPasteMode()
8992
set invpaste paste?
@@ -151,12 +154,7 @@ endif
151154
Plug 'vim-airline/vim-airline-themes' " https://github.com/vim-airline/vim-airline-themes
152155
let g:airline_theme='minimalist'
153156

154-
Plug 'sheerun/vim-polyglot' " https://github.com/sheerun/vim-polyglot
155-
let g:jsx_ext_required = 1
156-
let g:typescript_opfirst='\%([<>=,?^%|*/&]\|\([-:+]\)\1\@!\|!=\|in\%(stanceof\)\=\>\)'
157-
158157
Plug 'tpope/vim-commentary' " https://github.com/tpope/vim-commentary
159-
Plug 'itchyny/vim-cursorword' " https://github.com/itchyny/vim-cursorword
160158
Plug 'scrooloose/nerdtree' " https://github.com/scrooloose/nerdtree
161159
nmap <silent> tt :NERDTreeToggle<cr>
162160
nmap <silent> tf :NERDTreeFind<cr>
@@ -189,7 +187,7 @@ let g:gitgutter_sign_removed_first_line = '·'
189187
let g:gitgutter_sign_modified_removed = '·'
190188

191189
Plug 'Valloric/YouCompleteMe', {
192-
\ 'do': './install.py --go-completer --rust-completer --java-completer --clang-completer'
190+
\ 'do': './install.py --go-completer --rust-completer --java-completer --clangd-completer'
193191
\ }
194192
let g:ycm_error_symbol = '!'
195193
let g:ycm_warning_symbol = ''
@@ -238,7 +236,8 @@ endfunc
238236

239237
Plug 'juszczak/semantic-highlight.vim' " https://github.com/jaxbot/semantic-highlight.vim
240238

241-
let g:semantic_highlight_filetypes = ['typescript',
239+
let g:semantic_highlight_filetypes = [
240+
\ 'typescript',
242241
\ 'javascript',
243242
\ 'python',
244243
\ 'rust',
@@ -272,7 +271,7 @@ nmap <silent> [a <Plug>(ale_previous_wrap)
272271
nmap <silent> ]a <Plug>(ale_next_wrap)
273272
let g:ale_fixers = {
274273
\ 'typescript': ['tslint'],
275-
\ 'javascript': ['prettier']
274+
\ 'scss': ['stylelint'],
276275
\ }
277276
let g:ale_completion_enabled = 0
278277
let g:ale_fix_on_save = 0

0 commit comments

Comments
 (0)