Created
April 17, 2019 13:27
-
-
Save SmallEndian/de0b7870e4e3e2195423d00a4e73c3ed to your computer and use it in GitHub Desktop.
vimconfig
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| set mouse=a | |
| "Install plug plugin manager | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
| \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| " set the runtime path to include Vundle and initialize | |
| call plug#begin() | |
| Plug 'tpope/vim-fugitive' | |
| Plug 'git://git.wincent.com/command-t.git' | |
| " The sparkup vim script is in a subdirectory of this repo called vim. | |
| " Pass the path to set the runtimepath properly. | |
| Plug 'rstacruz/sparkup', {'rtp': 'vim/'} | |
| " Install L9 and avoid a Naming conflict if you've already installed a | |
| " different version somewhere else. | |
| " Plugin 'ascenator/L9', {'name': 'newL9'} | |
| " | |
| " A Vim Plugin for Lively Previewing LaTeX PDF Output | |
| Plug 'xuhdev/vim-latex-live-preview' | |
| " All of your Plugins must be added before the following line | |
| " MRU | |
| Plug 'https://github.com/yegappan/mru' | |
| " Syntastic | |
| Plug 'vim-syntastic/syntastic' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'liuchengxu/space-vim-dark' | |
| " lastplace: When you reopen a file, remembers where you were last time | |
| Plug 'https://github.com/farmergreg/vim-lastplace' | |
| " Do somthing cool with sessions | |
| Plug 'tpope/vim-obsession' | |
| " And add a start screen | |
| Plug 'mhinz/vim-startify' | |
| call plug#end() " required | |
| let g:livepreview_previewer = 'evince' | |
| set pt=<F2> | |
| set nu | |
| set number | |
| " Highlight current line | |
| :se cursorline | |
| " Syntastic defaults: | |
| set statusline+=%#warningmsg# | |
| set statusline+=%{SyntasticStatuslineFlag()} | |
| set statusline+=%* | |
| let g:syntastic_always_populate_loc_list = 1 | |
| let g:syntastic_auto_loc_list = 1 | |
| let g:syntastic_check_on_open = 0 | |
| let g:syntastic_check_on_wq = 0 | |
| map <F4> :SyntasticToggleMode<CR> | |
| colorscheme space-vim-dark | |
| hi Comment cterm=italic | |
| " For these YAML file, and gitlan-ci | |
| autocmd FileType yaml setlocal ts=2 sts=2 sw=2 expandtab | |
| set tabstop=4 | |
| au BufNewFile *.tex 0r ~/.vim/skel.tex | |
| au BufNewFile *.py 0r ~/.vim/python.py | |
| " Some syntastic prettifying: | |
| "hi SpellBad ctermfg=000 ctermbg=000 guifg=#000000 guibg=#ffffff | |
| "hi SpellCap ctermfg=000 ctermbg=000 guifg=#000000 guibg=#ffffff | |
| let g:syntastic_enable_highlighting=0 | |
| let g:syntastic_ignore_files = ['^.*[.]tex$'] | |
| "" Start page | |
| let g:startify_change_to_vcs_root = 1 | |
| let g:startify_session_persistence = 1 | |
| let g:startify_session_dir = '~/.vim/session' | |
| "" Pretty erlang | |
| function! ErlPretty() | |
| silent !erl -noshell -eval 'erl_tidy:file("%",[verbose]).' -s erlang halt | |
| endfunction | |
| nmap ep :execute ErlPretty() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment