1
0
Fork 0
mirror of synced 2024-11-14 21:18:58 -05:00
ultimate-vim/my_configs.vim

61 lines
1.5 KiB
VimL
Raw Normal View History

2016-08-16 23:00:18 -04:00
if has("mac") || has("macunix")
2017-11-27 00:41:25 -05:00
set gfn=Hack:h10,Source\ Code\ Pro:h10,Menlo:h10
2016-08-16 23:00:18 -04:00
elseif has("win16") || has("win32")
2017-11-27 00:41:25 -05:00
set gfn=Hack:h10,Source\ Code\ Pro:h10,Bitstream\ Vera\ Sans\ Mono:h10
2016-08-16 23:00:18 -04:00
elseif has("gui_gtk2")
2017-11-27 00:41:25 -05:00
set gfn=Hack\ 10,Source\ Code\ Pro\ 10,Bitstream\ Vera\ Sans\ Mono\ 10
2016-08-16 23:00:18 -04:00
elseif has("linux")
2017-11-27 00:41:25 -05:00
set gfn=Hack\ 10,Source\ Code\ Pro\ 10,Bitstream\ Vera\ Sans\ Mono\ 10
2016-08-16 23:00:18 -04:00
elseif has("unix")
2017-11-27 00:41:25 -05:00
set gfn=Monospace\ 10
2016-08-16 23:00:18 -04:00
endif
2016-08-17 09:35:55 -04:00
" move around tabs. conflict with the original screen top/bottom
" comment them out if you want the original H/L
" go to prev tab
map <S-H> gT
" go to next tab
map <S-L> gt
" mv current tab left
map <C-H> :execute 'tabmove ' . (tabpagenr()-2)<CR>
" mv current tab right
map <C-L> :execute 'tabmove ' . (tabpagenr()+1)<CR>
2016-08-17 09:35:55 -04:00
" new tab
map <C-t><C-t> :tabnew<CR>
" close tab
map <C-t><C-w> :tabclose<CR>
2017-11-27 00:41:25 -05:00
" show all open tabs
map <C-t><C-a> :tabs<CR>
2016-08-17 09:35:55 -04:00
" toggle NerdTree
map <F4> :NERDTreeToggle<CR>
set expandtab
set shiftwidth=2
set tabstop=2
set softtabstop=2
set cmdheight=1
2016-08-18 22:21:59 -04:00
set number
2016-10-05 08:17:49 -04:00
" yank to the system register (*) by default
set clipboard=unnamed
2016-08-18 22:21:59 -04:00
" Mark, highlight multiple words
source ~/.vim_runtime/sources_non_forked/Mark/plugin/mark.vim
let g:mwDefaultHighlightingPalette = 'maximum'
let g:mwDefaultHighlightingNum = 10
2016-08-17 09:35:55 -04:00
2016-08-22 09:00:27 -04:00
" Vim-jsx
let g:jsx_ext_required = 0
2016-08-22 09:11:36 -04:00
" Eslint
2017-03-27 03:44:07 -04:00
" let g:syntastic_javascript_checkers = ['eslint']
2016-08-22 09:11:36 -04:00
2017-10-25 02:15:53 -04:00
" disable Syntastic by default
let g:syntastic_mode_map = { 'mode': 'passive' }
" setl foldmethod=manual