|
|
@ -194,7 +194,7 @@ python del powerline_setup
|
|
|
|
nnoremap <leader>a :A<cr>
|
|
|
|
nnoremap <leader>a :A<cr>
|
|
|
|
|
|
|
|
|
|
|
|
" rust.vim
|
|
|
|
" rust.vim
|
|
|
|
let g:rustfmt_autosave = 1
|
|
|
|
" let g:rustfmt_autosave = 1
|
|
|
|
|
|
|
|
|
|
|
|
" vim-markdown
|
|
|
|
" vim-markdown
|
|
|
|
let g:markdown_fenced_languages = ['ruby']
|
|
|
|
let g:markdown_fenced_languages = ['ruby']
|
|
|
@ -204,11 +204,6 @@ if !empty($GOPATH)
|
|
|
|
packadd vim-go
|
|
|
|
packadd vim-go
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
" gui stuff
|
|
|
|
|
|
|
|
set guioptions-=T
|
|
|
|
|
|
|
|
set guifont=Consolas:h9:cANSI
|
|
|
|
|
|
|
|
set mousehide
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Expand %% into the directory of the current file
|
|
|
|
" Expand %% into the directory of the current file
|
|
|
|
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
|
|
|
|
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'
|
|
|
|
|
|
|
|
|
|
|
@ -222,19 +217,15 @@ endif
|
|
|
|
nnoremap <leader>d :Dispatch<CR>
|
|
|
|
nnoremap <leader>d :Dispatch<CR>
|
|
|
|
|
|
|
|
|
|
|
|
if has("gui_running")
|
|
|
|
if has("gui_running")
|
|
|
|
" au GUIEnter * simalt ~x " fullscreen
|
|
|
|
|
|
|
|
" set transparency=10
|
|
|
|
|
|
|
|
set macmeta
|
|
|
|
|
|
|
|
set background=light
|
|
|
|
set background=light
|
|
|
|
set guifont=Source\ Code\ Pro\ for\ Powerline:h13
|
|
|
|
set guifont=Source\ Code\ Pro\ for\ Powerline:h13
|
|
|
|
|
|
|
|
set guioptions-=T
|
|
|
|
set macligatures
|
|
|
|
set macligatures
|
|
|
|
" else
|
|
|
|
set macmeta
|
|
|
|
" fix Command-T's selection in Terminal.app
|
|
|
|
set mousehide
|
|
|
|
" hi Visual term=reverse cterm=reverse ctermfg=187 ctermbg=235 guifg=Black guibg=Yellow
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
if v:version >= 703
|
|
|
|
if v:version >= 703
|
|
|
|
" set relativenumber
|
|
|
|
|
|
|
|
set undofile
|
|
|
|
set undofile
|
|
|
|
set undodir=$HOME/.vim_undo//
|
|
|
|
set undodir=$HOME/.vim_undo//
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|