Vim update
- Remove Airline, and replace with custom, minimal status line - Cleanup README, for me because no one else cares about that
This commit is contained in:
parent
5cb56e8e6e
commit
b05179041b
3 changed files with 28 additions and 26 deletions
|
@ -1,30 +1,17 @@
|
||||||
#Vim Configuration Files
|
#Vim Configuration Files
|
||||||
|
|
||||||
My vim configuration is relatively straight forward.
|
My vim configuration is relatively straight forward. I comment most lines.
|
||||||
|
|
||||||
##Config File
|
### Bundles File
|
||||||
* Word-wrap is set to 80 characters
|
|
||||||
* Mappings to quickly edit dotfiles
|
|
||||||
* Relative numbering, with mapping to quickly swap
|
|
||||||
|
|
||||||
##Bundles File
|
|
||||||
The vimrc.bundles file stores the plugin information for
|
The vimrc.bundles file stores the plugin information for
|
||||||
[Vim-Plug](https://github.com/junegunn/vim-plug). Included in the file is a
|
[Vim-Plug](https://github.com/junegunn/vim-plug). Included in the file is a
|
||||||
command to check for and pull-down the vim-plug files, if not previously
|
command to check for and pull-down the vim-plug files, if not previously
|
||||||
installed. All configurations related to plugins goes into this file also, so if
|
installed. All configurations related to plugins goes into this file also, so if
|
||||||
I want a plugin-free install, I can ignore this file and still run fine.
|
I want a plugin-free install, I can ignore this file and still run fine.
|
||||||
|
|
||||||
####Notable Plugins
|
## Notable Plugins
|
||||||
* [Fugitive](https://github.com/tpope/vim-fugitive) for nice Git integration.
|
* [Fugitive](https://github.com/tpope/vim-fugitive) for nice Git integration.
|
||||||
* [Airline](https://github.com/bling/vim-airline) to look nice, but not garish.
|
* [Vinegar](https://github.com/tpope/vim-vinegar) for file browsing.
|
||||||
* [Vinegar](https://github.com/tpope/vim-vinegar) for a file browsing.
|
|
||||||
* [Templates](https://github.com/ap/vim-templates.git) for easy templates.
|
|
||||||
* [vimwiki](https://github.com/vimwiki/vimwiki) for info, diary and notes.
|
* [vimwiki](https://github.com/vimwiki/vimwiki) for info, diary and notes.
|
||||||
* [Startify](https://github.com/mhinz/vim-startify) for a nice start-page
|
* [Startify](https://github.com/mhinz/vim-startify) for a nice start-page
|
||||||
* [Syntastic](https://github.com/scrooloose/syntastic) for syntax checking.
|
* [Syntastic](https://github.com/scrooloose/syntastic) for syntax checking.
|
||||||
|
|
||||||
##To-Do
|
|
||||||
* [ ] Customize Airline more (Optional)
|
|
||||||
* [ ] Consider adding [gist-vim](https://github.com/mattn/gist-vim) due to
|
|
||||||
prevalence of Gist at work
|
|
||||||
* [ ] Get color situtated.
|
|
||||||
|
|
23
vim/vimrc
23
vim/vimrc
|
@ -48,6 +48,26 @@ augroup END
|
||||||
" let g:netrw_browse_split=4
|
" let g:netrw_browse_split=4
|
||||||
" let g:netrw_winsize=25
|
" let g:netrw_winsize=25
|
||||||
|
|
||||||
|
|
||||||
|
" ==============================================================================
|
||||||
|
" Status Line
|
||||||
|
" ==============================================================================
|
||||||
|
hi StatusLineError ctermfg=15 ctermbg=1 guifg=red
|
||||||
|
set laststatus=2
|
||||||
|
set statusline=
|
||||||
|
set statusline+=%m
|
||||||
|
set statusline+=%r
|
||||||
|
set statusline+=%h
|
||||||
|
set statusline+=%{fugitive#statusline()}
|
||||||
|
set statusline+=%#Pmenu#
|
||||||
|
set statusline+=\ %F
|
||||||
|
set statusline+=%=
|
||||||
|
set statusline+=
|
||||||
|
set statusline+=%#StatusLine#
|
||||||
|
set statusline+=\|%l\:%c\|
|
||||||
|
set statusline+=%#SyntasticError#
|
||||||
|
set statusline+=%{SyntasticStatuslineFlag()}
|
||||||
|
|
||||||
" ==============================================================================
|
" ==============================================================================
|
||||||
" Mappings
|
" Mappings
|
||||||
" ==============================================================================
|
" ==============================================================================
|
||||||
|
@ -80,9 +100,6 @@ inoremap jk <esc>
|
||||||
" Remove Trailing Whitespaace
|
" Remove Trailing Whitespaace
|
||||||
nnoremap <silent> <leader>rtw :%s/\s\+$//e<CR>
|
nnoremap <silent> <leader>rtw :%s/\s\+$//e<CR>
|
||||||
|
|
||||||
" Easy mapping for Startify
|
|
||||||
nnoremap <silent> <leader>s :Startify<CR>
|
|
||||||
|
|
||||||
" Open help topics in a full new tab
|
" Open help topics in a full new tab
|
||||||
command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h <args>
|
command! -nargs=1 -complete=help H :tabnew | :set buftype=help | :h <args>
|
||||||
|
|
||||||
|
|
|
@ -19,18 +19,17 @@ call plug#begin('~/.vim/bundle')
|
||||||
Plug 'tpope/vim-unimpaired'
|
Plug 'tpope/vim-unimpaired'
|
||||||
Plug 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
Plug 'ajh17/VimCompletesMe'
|
Plug 'ajh17/VimCompletesMe'
|
||||||
|
Plug 'ludovicchabant/vim-gutentags'
|
||||||
" Ruby Related
|
" Ruby Related
|
||||||
Plug 'tpope/vim-endwise'
|
Plug 'tpope/vim-endwise'
|
||||||
Plug 'vim-ruby/vim-ruby'
|
Plug 'vim-ruby/vim-ruby'
|
||||||
" Appearance Related
|
" Appearance Related
|
||||||
Plug 'mhinz/vim-startify'
|
Plug 'mhinz/vim-startify'
|
||||||
Plug 'bling/vim-airline'
|
|
||||||
Plug 'dikiaap/minimalist'
|
Plug 'dikiaap/minimalist'
|
||||||
Plug 'junegunn/goyo.vim'
|
Plug 'junegunn/goyo.vim'
|
||||||
" Syntax Related
|
" Syntax Related
|
||||||
Plug 'scrooloose/syntastic'
|
Plug 'scrooloose/syntastic'
|
||||||
Plug 'tmux-plugins/vim-tmux'
|
Plug 'tmux-plugins/vim-tmux'
|
||||||
Plug 'rondale-sc/vim-spacejam'
|
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
" ==============================================================================
|
" ==============================================================================
|
||||||
|
@ -41,10 +40,6 @@ call plug#end()
|
||||||
set t_Co=256
|
set t_Co=256
|
||||||
colorscheme minimalist
|
colorscheme minimalist
|
||||||
|
|
||||||
" Airline configuration
|
|
||||||
set laststatus=2
|
|
||||||
let g:airline_powerline_fonts = 1
|
|
||||||
|
|
||||||
" Startify configs
|
" Startify configs
|
||||||
let g:startify_files_number = 6
|
let g:startify_files_number = 6
|
||||||
let g:startify_change_to_dir = 1
|
let g:startify_change_to_dir = 1
|
||||||
|
@ -56,6 +51,9 @@ let g:startify_bookmarks = [
|
||||||
\ ]
|
\ ]
|
||||||
|
|
||||||
" Syntastic configs
|
" Syntastic configs
|
||||||
|
" Easy mapping for Startify
|
||||||
|
nnoremap <silent> <leader>s :Startify<CR>
|
||||||
|
|
||||||
let g:syntastic_always_populate_loc_list = 1
|
let g:syntastic_always_populate_loc_list = 1
|
||||||
let g:syntastic_auto_loc_list = 1
|
let g:syntastic_auto_loc_list = 1
|
||||||
let g:syntastic_check_on_open = 1
|
let g:syntastic_check_on_open = 1
|
||||||
|
|
Loading…
Reference in a new issue