mirror of https://github.com/nirenjan/dotfiles.git
				
				
				
			Install vim-airline plugin and add settings file
Vim's statusline is now handled by the vim-airline plugin. This commit removes the statusline cruft from vimrc and adds a tiny airline-settings plugin to configure airline.master
							parent
							
								
									95c8ad2490
								
							
						
					
					
						commit
						29fc3c0bb2
					
				
							
								
								
									
										4
									
								
								install
								
								
								
								
							
							
						
						
									
										4
									
								
								install
								
								
								
								
							|  | @ -165,7 +165,7 @@ Bundle() | |||
| ####################################################################### | ||||
| while getopts "nht:" OPTION | ||||
| do | ||||
|     case "$OPTION" in  | ||||
|     case "$OPTION" in | ||||
|         n) | ||||
|             echo "Skipping bundle updates" | ||||
|             BUNDLE_NO_UPDATE=1 | ||||
|  | @ -275,6 +275,7 @@ lnfile vimrc ~/.vimrc | |||
| # Install my plugins | ||||
| lnfile vim/plugin/long-lines.vim        ~/.vim/plugin/ | ||||
| lnfile vim/plugin/match-brackets.vim    ~/.vim/plugin/ | ||||
| lnfile vim/plugin/airline-settings.vim  ~/.vim/plugin/ | ||||
| 
 | ||||
| # Install my ftdetect plugins | ||||
| lnfile vim/ftdetect/swig.vim            ~/.vim/ftdetect/ | ||||
|  | @ -298,6 +299,7 @@ Bundle  altercation/vim-colors-solarized    # Solarized | |||
| Bundle  vimwiki                             # Vimwiki | ||||
| Bundle  msanders/snipmate.vim               # snipMate | ||||
| Bundle  tomtom/tcomment_vim                 # tComment | ||||
| Bundle  bling/vim-airline                   # Airline is awesome! | ||||
| 
 | ||||
| ####################################################################### | ||||
| # Install tmux & screen config files | ||||
|  |  | |||
|  | @ -0,0 +1,9 @@ | |||
| " File: airline-settings.vim | ||||
| " Author: Nirenjan Krishnan | ||||
| " Description: Base settings for vim-airline plugin | ||||
| " Last Modified: August 15, 2013 | ||||
| 
 | ||||
| set ttm=50 | ||||
| let g:airline_left_sep='' | ||||
| let g:airline_right_sep='' | ||||
| let g:airline_theme='solarized' | ||||
							
								
								
									
										13
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										13
									
								
								vimrc
								
								
								
								
							|  | @ -43,19 +43,6 @@ set laststatus=2 | |||
| " Show tab line | ||||
| set showtabline=2 | ||||
| 
 | ||||
| " Set status to show all details | ||||
| set statusline=%F           " Full path to filename | ||||
| set statusline+=%m          " Modified flag | ||||
| set statusline+=%h          " Help buffer flag | ||||
| set statusline+=%w          " Preview window flag | ||||
| set statusline+=\ %y        " File type | ||||
| set statusline+=%=          " Switch to right align | ||||
| set statusline+=[%03.3b     " ASCII value for character under cursor | ||||
| set statusline+=/0x%02.2B]  " Same, but in hex | ||||
| set statusline+=\ [%v       " Virtual column number | ||||
| set statusline+=,%l/%L]     " Current line number, total lines | ||||
| set statusline+=\ [%p%%]    " Percentage through file | ||||
| 
 | ||||
| " Set the cursorline option | ||||
| " This (by default shows up as underlining) | ||||
| set cursorline | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue