mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	Added vim-commentary and updarted the plugins.
commentary: Comment stuff out. Use `gcc` to comment out a line (takes a count), `gc` to comment out the target of a motion (for example, `gcap` to comment out a paragraph), and `gc` in visual mode to comment out the selection. That's it.
This commit is contained in:
		| @ -55,7 +55,7 @@ endfunction | ||||
| function! s:check_in_path() | ||||
|   if !exists('b:airline_branch_path') | ||||
|     let root = get(b:, 'git_dir', get(b:, 'mercurial_dir', '')) | ||||
|     let bufferpath = resolve(fnamemodify(expand('%'), ':p:h')) | ||||
|     let bufferpath = resolve(fnamemodify(expand('%'), ':p')) | ||||
|  | ||||
|     if !filereadable(root) "not a file | ||||
|       " if .git is a directory, it's the old submodule format | ||||
|  | ||||
| @ -31,6 +31,7 @@ function! airline#extensions#tabline#init(ext) | ||||
|  | ||||
|   autocmd User AirlineToggledOn call s:toggle_on() | ||||
|   autocmd User AirlineToggledOff call s:toggle_off() | ||||
|   autocmd BufDelete * let s:current_bufnr = -1 | ||||
|  | ||||
|   call s:toggle_on() | ||||
|   call a:ext.add_theme_func('airline#extensions#tabline#load_theme') | ||||
|  | ||||
| @ -23,9 +23,15 @@ function! airline#extensions#tagbar#inactive_apply(...) | ||||
|   endif | ||||
| endfunction | ||||
|  | ||||
| let s:airline_tagbar_last_lookup_time = 0 | ||||
| let s:airline_tagbar_last_lookup_val = '' | ||||
| function! airline#extensions#tagbar#currenttag() | ||||
|   if get(w:, 'airline_active', 0) | ||||
|     return tagbar#currenttag('%s', '', s:flags) | ||||
|     if s:airline_tagbar_last_lookup_time != localtime() | ||||
|       let s:airline_tagbar_last_lookup_val = tagbar#currenttag('%s', '', s:flags) | ||||
|       let s:airline_tagbar_last_lookup_time = localtime() | ||||
|     endif | ||||
|     return s:airline_tagbar_last_lookup_val | ||||
|   endif | ||||
|   return '' | ||||
| endfunction | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 amix
					amix