Created
November 13, 2017 17:07
-
-
Save fennecdjay/8bb772d7fb4c585d60344cf9ee74255f 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
set nocompatible | |
set mouse=a | |
filetype plugin indent on | |
set foldenable | |
set foldmethod=marker | |
au FileType sh let g:sh_fold_enabled=5 | |
au FileType sh let g:is_bash=1 | |
au FileType sh set foldmethod=syntax | |
syntax enable | |
set background=dark | |
set number | |
set updatetime=250 | |
set runtimepath+=~/.dein/ | |
if dein#load_state(expand('~/')) " plugins' root path | |
call dein#begin(expand('~/')) " plugins' root path | |
call dein#add('jiangmiao/auto-pairs') | |
call dein#add('tpope/vim-fugitive') | |
call dein#add('mattn/webapi-vim') | |
call dein#add('junegunn/seoul256.vim') | |
call dein#add('mhinz/vim-startify') | |
call dein#add('mattn/gist-vim') | |
call dein#add('wsdjeg/GitHub.vim') | |
call dein#add('bling/vim-airline') | |
call dein#add('Marfisc/vorange') | |
call dein#add('johngrib/vim-game-code-break') | |
call dein#add('justinmk/vim-syntax-extra') | |
call dein#add('Shougo/unite.vim') | |
call dein#add('rhysd/unite-redpen.vim') | |
call dein#add('airblade/vim-gitgutter') | |
if dein#check_install() | |
call dein#install() | |
endif | |
call dein#end() | |
endif | |
set foldmethod=syntax | |
filetype plugin on | |
set cursorline | |
hi CursorLine cterm=bold | |
hi LineNr ctermfg=DarkGrey | |
set ts=2 sw=2 et | |
set runtimepath^=/usr/share/vim/vimfiles | |
let g:comment_string0="//" | |
let g:comment_string1="/*" | |
let g:comment_string2="*/" | |
let g:rainbow_active = 1 | |
let g:startify_bookmarks = [ | |
\ { 'c': '~/.config/nvim/init.vim' }, | |
\ { 'z': '~/.zshrc' }, | |
\ ] | |
let g:startify_skip_list = [ '.*vim', 'init.vim', "$HOME . '/.config/nvim/init.vim'"] | |
let g:startify_custom_footer = | |
\ map(split(system('fortune 75% chucknorris art | cowsay -s -f $(ls /usr/share/cows | shuf -n 1)'), '\n'), '" ". v:val') | |
let g:startify_files_number = 5 | |
let g:startify_session_dir='~/.config/nvim/session' | |
let g:startify_commands = [ ['Github | Issues','Gissues'], [ 'Github | DashBoard', 'GHDashboard'], [ 'Github | Activity', 'GHActivity' ] ] | |
"join(startify#fortune#cowsay(), '\n') | |
let g:session_autosave = 'no' | |
let g:session_autoload = 'no' | |
let g:session_directory = '~/.config/nvim/session' | |
" vim-move <Alt j/k>: | |
" github issues | |
let g:github_access_token = "dd1b939bc3568270700a8c7e842fa42b357d2d31" | |
let g:github_same_window = 0 | |
let g:gissues_lazy_load = 0 | |
let g:gissues_async_omni = 0 | |
let g:github_upstream_issues = 0 | |
let g:github_dashboard = { 'username': 'fennecdjay', 'password': g:github_access_token } | |
let g:Powerline_symbols = 'fancy' | |
let g:airline_powerline_fonts = 1 | |
let &colorcolumn="80" | |
au BufRead *.bats source ~/.config/nvim/bats.vim | |
"colors vorange | |
let g:airline_theme = 'vorange' | |
let g:seiya_target_groups = has('nvim') ? ['guibg'] : ['ctermbg'] | |
function! AdaptColorscheme() | |
highlight clear CursorLine | |
highlight Normal ctermbg=none guibg=none | |
highlight LineNr ctermbg=none guibg=none | |
highlight Folded ctermbg=none guibg=none | |
highlight NonText ctermbg=none guibg=none | |
highlight SpecialKey ctermbg=none guibg=none | |
highlight VertSplit ctermbg=none guibg=none | |
highlight SignColumn ctermbg=none guibg=none | |
endfunction | |
autocmd ColorScheme * call AdaptColorscheme() | |
"let g:CCTreeOrientation = "rightabove" | |
"nmap <silent> <F8> :CCTreeWindowToggle<CR> | |
"nmap <silent> <F9> :TagbarToggle<CR> | |
augroup reload_vimrc " {{{ | |
autocmd! | |
autocmd BufWritePost $MYVIMRC source $MYVIMRC | |
call AdaptColorscheme() | |
augroup END " }}} | |
"let Tlist_Auto_Open = 1 | |
autocmd Filetype gitcommit setlocal spell textwidth=72 | |
let g:committia_hooks = {} | |
function! g:committia_hooks.edit_open(info) | |
setlocal spell | |
if a:info.vcs ==# 'git' && getline(1) ==# '' | |
startinsert | |
end | |
" Scroll the diff window from insert mode | |
" Map <C-n> and <C-p> | |
imap <buffer><C-n> <Plug>(committia-scroll-diff-down-half) | |
imap <buffer><C-p> <Plug>(committia-scroll-diff-up-half) | |
endfunction | |
let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '`':'`', '<<<':'>>>' } | |
let has_X = system("echo $DISPLAY") | |
if has_X[0] != ":" | |
colorscheme desert | |
else | |
let $NVIM_TUI_ENABLE_TRUE_COLOR=1 | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment