Created
September 21, 2016 08:18
-
-
Save kianho/aafd07f08627e846ebb443c883f0b2ba to your computer and use it in GitHub Desktop.
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
| " | |
| " Use vim-plug to manage vim plugins | |
| " | |
| " - https://github.com/junegunn/vim-plug | |
| " | |
| " CLI USAGE EXAMPLES: | |
| " | |
| " Install plugins: | |
| " | |
| " $ vim +PlugInstall +qall | |
| " | |
| " Remove unused plugins: | |
| " | |
| " $ vim +PlugClean! +qall | |
| " | |
| " Note: | |
| " calling "+qall" from the cli invokes the ":qall" command in vim, which | |
| " will close all the windows and exit vim once the preceding command is | |
| " complete. | |
| " | |
| call plug#begin('~/.vim/plugged') | |
| " Load vim plugins from github. | |
| Plug 'sirver/ultisnips' | |
| Plug 'honza/vim-snippets' | |
| Plug 'flazz/vim-colorschemes' | |
| Plug 'vim-scripts/ScrollColors' | |
| Plug 'derekwyatt/vim-scala' | |
| Plug 'vim-airline/vim-airline' | |
| Plug 'vim-airline/vim-airline-themes' | |
| Plug 'motus/pig.vim' | |
| Plug 'junegunn/vim-easy-align' | |
| Plug 'ekalinin/Dockerfile.vim' | |
| Plug 'tpope/vim-fugitive' | |
| "Plug 'scrooloose/syntastic' | |
| Plug 'xolox/vim-misc' | |
| Plug 'xolox/vim-easytags' | |
| Plug 'xolox/vim-notes' | |
| Plug 'majutsushi/tagbar' | |
| "Plug 'Valloric/YouCompleteMe' | |
| Plug 'davidhalter/jedi-vim' | |
| "Plug 'fmoralesc/vim-pad' | |
| "Plug 'vimoutliner/vimoutliner' | |
| Plug 'ibab/vim-snakemake' | |
| set laststatus=2 | |
| call plug#end() | |
| let g:UltiSnipsSnippetDirectories=[ expand('$HOME', 1) . '/.vim/custom-snippets' ] | |
| " | |
| " vim-airline extensions | |
| " | |
| let g:airline#extensions#branch#enabled = 1 | |
| let g:airline#extensions#syntastic#enabled = 1 | |
| let g:airline_powerline_fonts = 0 | |
| "let g:airline_theme = 'powerlineish' | |
| let g:airline_theme = 'simple' | |
| " syntastic config. | |
| 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 | |
| " easytags and tagbar | |
| set tags=./tags;,~/.vimtags | |
| "set tags=~/.vimtags | |
| " Sensible defaults | |
| let g:easytags_events = ['BufReadPost', 'BufWritePost'] | |
| let g:easytags_async = 1 | |
| let g:easytags_dynamic_files = 2 | |
| let g:easytags_resolve_links = 1 | |
| let g:easytags_suppress_ctags_warning = 1 | |
| " ----- majutsushi/tagbar settings ----- | |
| " Open/close tagbar with \b | |
| nmap <silent> <leader>b :TagbarToggle<CR> | |
| let g:ycm_filetype_whitelist = { 'python': 1 } | |
| " | |
| " Whitespace | |
| " | |
| set shiftwidth=4 | |
| set tabstop=4 | |
| set expandtab | |
| set nowrap | |
| set foldmethod=indent | |
| set t_Co=256 | |
| set background=dark | |
| color delek | |
| set modeline | |
| set mouse=n | |
| filetype plugin indent on | |
| nnoremap <F8> :setl noai nocin nosi inde=<CR> | |
| nnoremap <S-h> gT | |
| nnoremap <S-l> gt | |
| nnoremap <F9> :SyntasticToggleMode<CR> | |
| map <S-Right> :tabn<CR> | |
| map <S-Left> :tabp<CR> | |
| " | |
| " Fix syntax highlighting. | |
| " | |
| noremap <F12> <Esc>:syntax sync fromstart<CR> | |
| inoremap <F12> <C-o>:syntax sync fromstart<CR> | |
| " No background colouring for folded code. | |
| hi Folded ctermbg=NONE ctermfg=darkgrey | |
| " Prevent extraneous indentation after colons when editing non-python files. | |
| set indentkeys-=<:> | |
| set indentkeys-=: | |
| " | |
| " Check for Markdown file types. | |
| " | |
| augroup markdown | |
| au! | |
| au BufNewFile,BufRead *.md,*.markdown setlocal filetype=markdown | |
| augroup END | |
| set nocompatible | |
| ":let g:notes_directories = ['~/Copy/notes'] | |
| :let g:notes_suffix = '.note' | |
| :let g:notes_list_bullets = ['•', '◦', '▸', '▹', '▪', '▫'] | |
| autocmd BufNewFile,BufRead *.note setlocal filetype=notes | |
| autocmd BufNewFile,BufRead Sakefile setlocal filetype=yaml | |
| :set comments +=fb:• |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment