mirror of
https://github.com/ViViDboarder/vim-settings.git
synced 2024-11-17 18:46:26 +00:00
Startupify and cleanup
This commit is contained in:
parent
008e2ef801
commit
179ccc8e96
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,5 +7,7 @@ vim/autoload/plug.vim.old
|
||||
vim/backup/*~
|
||||
vim/plugged/*
|
||||
vim/rc/*.local.rc.vim
|
||||
vim/rc/plugins/*.local.rc.vim
|
||||
vim/tmp/*.swo
|
||||
vim/tmp/*.swp
|
||||
vim/tmp/viminfo
|
||||
|
@ -18,6 +18,7 @@ set mouse=a
|
||||
set backup
|
||||
set backupdir=~/.vim/backup
|
||||
set directory=~/.vim/tmp
|
||||
set viminfo='100,n~/.vim/tmp/viminfo
|
||||
|
||||
" Filetype extension
|
||||
au BufRead,BufNewFile *.md set syntax=markdown
|
||||
|
@ -105,6 +105,8 @@ endif
|
||||
" }}
|
||||
|
||||
" GUI {{
|
||||
Plug 'mhinz/vim-startify'
|
||||
call s:smart_source_rc('plugins/startify')
|
||||
Plug 'bling/vim-airline'
|
||||
" vim-airline {{
|
||||
" Use short-form mode text
|
||||
@ -169,20 +171,21 @@ Plug 'tmux-plugins/vim-tmux'
|
||||
Plug 'alfredodeza/coveragepy.vim'
|
||||
Plug 'alfredodeza/pytest.vim'
|
||||
Plug 'davidhalter/jedi-vim'
|
||||
" {{
|
||||
let g:jedi#completions_enabled = 0
|
||||
let g:jedi#auto_vim_configuration = 0
|
||||
" }}
|
||||
" jedi-vim {{
|
||||
let g:jedi#completions_enabled = 0
|
||||
let g:jedi#auto_vim_configuration = 0
|
||||
" }} jedi-vim
|
||||
Plug 'klen/python-mode'
|
||||
" {{
|
||||
let g:pymode_breakpoint = 0
|
||||
let g:pymode_lint = 0
|
||||
let g:pymode_lint_checkers = ['flake8']
|
||||
let g:pymode_lint_on_write = 0
|
||||
let g:pymode_rope = 0
|
||||
let g:pymode_rope_complete_on_dot = 0
|
||||
let g:pymode_rope_completion = 0
|
||||
"}}
|
||||
" python-mode {{
|
||||
let g:pymode_breakpoint = 0
|
||||
let g:pymode_lint = 0
|
||||
let g:pymode_lint_checkers = ['flake8']
|
||||
let g:pymode_lint_on_write = 0
|
||||
let g:pymode_rope = 0
|
||||
let g:pymode_rope_complete_on_dot = 0
|
||||
let g:pymode_rope_completion = 0
|
||||
" }} python-mode
|
||||
|
||||
" }}
|
||||
|
||||
" Themes {{
|
||||
@ -202,12 +205,11 @@ Plug 'wombat256.vim'
|
||||
" neomake / vim-dispatch {{
|
||||
if has('nvim')
|
||||
Plug 'benekastah/neomake'
|
||||
" {{
|
||||
nmap <leader>nm :Neomake<CR>
|
||||
nnoremap <F5> :Neomake<CR>
|
||||
let g:neomake_python_enabled_makers = ['flake8']
|
||||
|
||||
" }}
|
||||
" neomake {{
|
||||
nmap <leader>nm :Neomake<CR>
|
||||
nnoremap <F5> :Neomake<CR>
|
||||
let g:neomake_python_enabled_makers = ['flake8']
|
||||
" }} neomake
|
||||
else
|
||||
Plug 'tpope/vim-dispatch'
|
||||
nnoremap <F5> :Make<CR>
|
||||
@ -220,8 +222,9 @@ Plug 'tpope/vim-endwise'
|
||||
" emacs bindinds in insert
|
||||
Plug 'tpope/vim-rsi'
|
||||
Plug 'milkypostman/vim-togglelist'
|
||||
" {{
|
||||
nnoremap <silent> <F6> :call ToggleQuickfixList()<CR>
|
||||
nnoremap <silent> <F7> :call ToggleLocationList()<CR>
|
||||
" }}
|
||||
" vim-togglelist {{
|
||||
nnoremap <silent> <F6> :call ToggleQuickfixList()<CR>
|
||||
nnoremap <silent> <F7> :call ToggleLocationList()<CR>
|
||||
" }} vim-togglelist
|
||||
|
||||
" }}
|
||||
|
@ -4,8 +4,8 @@
|
||||
let g:ctrlp_max_height = 10
|
||||
" Conditional Mappings
|
||||
let g:ctrlp_map = '<C-t>'
|
||||
" Allow ctrl p to open over the initial nerdtree window
|
||||
let g:ctrlp_dont_split = 'netrw'
|
||||
" Allow ctrl p to open over startify
|
||||
let g:ctrlp_reuse_window = 'startify'
|
||||
" Support tag jumping
|
||||
let g:ctrlp_extensions = ['tag', 'buffertag']
|
||||
" Support Apex language
|
||||
|
7
vim/rc/plugins/startify.rc.vim
Normal file
7
vim/rc/plugins/startify.rc.vim
Normal file
@ -0,0 +1,7 @@
|
||||
" Override in local rc
|
||||
" let g:startify_bookmarks = [
|
||||
" \ '~/.vim',
|
||||
" \ '~/workspace/my-shoestrap'
|
||||
" \ ]
|
||||
" let g:startify_custom_header =
|
||||
" \ map(split(system('fortune | cowsay'), '\n'), '" ". v:val') + ['','']
|
Loading…
Reference in New Issue
Block a user