summaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2016-04-30 01:09:26 +0100
committerUrbain Vaes <urbain@vaes.uk>2016-04-30 01:09:26 +0100
commitbf59d8b22304886f3fd33da7a7bb01507cf8dda7 (patch)
tree74618be1c2685e8d6fa9a090bc41afbe678601c6 /vim
parent14453e17a8c8a50ff18673c2c9992329f9314d04 (diff)
Revert to vim-airline
Diffstat (limited to 'vim')
-rw-r--r--vim/.vimrc27
1 files changed, 7 insertions, 20 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index c403eb4..383741a 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -47,6 +47,13 @@ nmap ga <Plug>(EasyAlign)
xmap gl <Plug>(LiveEasyAlign)
nmap gl <Plug>(LiveEasyAlign)
+Plug 'vim-airline/vim-airline'
+Plug 'vim-airline/vim-airline-themes'
+let g:airline_left_sep=''
+let g:airline_right_sep=''
+let g:airline#extensions#whitespace#checks = [ 'indent', 'trailing', 'mixed-indent-file' ]
+let g:airline_theme='base16'
+
Plug 'junegunn/vim-peekaboo'
Plug 'junegunn/vim-pseudocl'
Plug 'junegunn/vim-oblique'
@@ -93,26 +100,6 @@ nnoremap )) :BufSurfForward<CR>
Plug 'tpope/vim-commentary'
Plug 'tpope/vim-dispatch'
Plug 'tpope/vim-eunuch'
-Plug 'tpope/vim-flagship'
-let g:tabprefix = ""
-let g:tablabel = "%N%{flagship#tabmodified()} %{flagship#tabcwds('shorten',',')}"
-
-function! Mixed_indent()
- let l:spaces=search('\v(^ +)','n')
- let l:tabs=search('\v(^\t+)','n')
- return (l:spaces * l:tabs > 0)
-endfunction
-
-augroup myflags
- autocmd!
- autocmd BufEnter,BufRead,BufWritePost * let b:trailing=search('\s\+$','n')
- autocmd BufEnter,BufRead,BufWritePost * let b:mixed=Mixed_indent()
- autocmd User Flags call Hoist("window", "SyntasticStatuslineFlag")
- autocmd User Flags call Hoist("window", "%{b:trailing?'[tw]':''}")
- autocmd User Flags call Hoist("window", "%{b:mixed?'[mixed]':''}")
- autocmd User Flags call Hoist("window", "%{&paste?'[paste]':''}")
-augroup END
-
Plug 'tpope/vim-fugitive'
nnoremap <Leader>gs :Gstatus<cr>
nnoremap <Leader>gr :Gread<cr>