key mappings
This commit is contained in:
		
							parent
							
								
									077899fdc8
								
							
						
					
					
						commit
						6213267416
					
				
							
								
								
									
										18
									
								
								vimrc
								
								
								
								
							
							
						
						
									
										18
									
								
								vimrc
								
								
								
								
							|  | @ -73,9 +73,9 @@ Plugin 'airblade/vim-gitgutter' | |||
| " vim-peekaboo | ||||
| " https://github.com/junegunn/vim-peekaboo  | ||||
| Plugin 'junegunn/vim-peekaboo' | ||||
| " vim-autotags | ||||
| " https://github.com/craigemery/vim-autotag | ||||
| Plugin 'craigemery/vim-autotag' | ||||
| " vim-gutentags | ||||
| " https://github.com/ludovicchabant/vim-gutentags | ||||
| Plugin 'ludovicchabant/vim-gutentags' | ||||
| 
 | ||||
| " All of your Plugins must be added before the following line | ||||
| call vundle#end()            " required | ||||
|  | @ -104,7 +104,7 @@ set updatetime=100 | |||
| set backupdir=~/.vimtmp | ||||
| set directory=~/.vimtmp | ||||
| 
 | ||||
| set tags+=./.ctags,.ctags | ||||
| set tags+=./.tags,.tags;/home/ray/ | ||||
| 
 | ||||
| " persisitent undo file | ||||
| set undodir=/home/ray/.vim/undodir | ||||
|  | @ -152,6 +152,11 @@ set wrapmargin=0 | |||
| " key #mappings | ||||
| let g:mapleader = "\<space>" | ||||
| 
 | ||||
| nnoremap <leader>rc :so $MYVIMRC<CR> | ||||
| 
 | ||||
| " Focus on current fold, close the rest | ||||
| nnoremap <leader>zz zMzvzz | ||||
| 
 | ||||
| " replace current word with last yanked/deleted text | ||||
| nnoremap <leader>rr "_diwP | ||||
| " replace current word with last yanked text | ||||
|  | @ -518,9 +523,6 @@ nnoremap <leader>o :BufExplorer<CR> | |||
| " undotree | ||||
| nnoremap <leader>ut :UndotreeToggle<cr> | ||||
| 
 | ||||
| " vim-autotag | ||||
| let g:autotagTagsFile = '.ctags' | ||||
| 
 | ||||
| " TagBar | ||||
| nnoremap <leader>tb :TagbarOpen fj<CR> | ||||
| nnoremap <leader>] :tag /[.#@]<c-r>=expand('<cword>')<cr><cr> | ||||
|  | @ -564,6 +566,8 @@ let g:tagbar_type_vue = { | |||
| \ ] | ||||
| \ } | ||||
| 
 | ||||
| " gutentags | ||||
| let g:gutentags_ctags_tagfile = '.tags' | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue