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 | " vim-peekaboo | ||||||
| " https://github.com/junegunn/vim-peekaboo  | " https://github.com/junegunn/vim-peekaboo  | ||||||
| Plugin 'junegunn/vim-peekaboo' | Plugin 'junegunn/vim-peekaboo' | ||||||
| " vim-autotags | " vim-gutentags | ||||||
| " https://github.com/craigemery/vim-autotag | " https://github.com/ludovicchabant/vim-gutentags | ||||||
| Plugin 'craigemery/vim-autotag' | Plugin 'ludovicchabant/vim-gutentags' | ||||||
| 
 | 
 | ||||||
| " All of your Plugins must be added before the following line | " All of your Plugins must be added before the following line | ||||||
| call vundle#end()            " required | call vundle#end()            " required | ||||||
|  | @ -104,7 +104,7 @@ set updatetime=100 | ||||||
| set backupdir=~/.vimtmp | set backupdir=~/.vimtmp | ||||||
| set directory=~/.vimtmp | set directory=~/.vimtmp | ||||||
| 
 | 
 | ||||||
| set tags+=./.ctags,.ctags | set tags+=./.tags,.tags;/home/ray/ | ||||||
| 
 | 
 | ||||||
| " persisitent undo file | " persisitent undo file | ||||||
| set undodir=/home/ray/.vim/undodir | set undodir=/home/ray/.vim/undodir | ||||||
|  | @ -152,6 +152,11 @@ set wrapmargin=0 | ||||||
| " key #mappings | " key #mappings | ||||||
| let g:mapleader = "\<space>" | 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 | " replace current word with last yanked/deleted text | ||||||
| nnoremap <leader>rr "_diwP | nnoremap <leader>rr "_diwP | ||||||
| " replace current word with last yanked text | " replace current word with last yanked text | ||||||
|  | @ -518,9 +523,6 @@ nnoremap <leader>o :BufExplorer<CR> | ||||||
| " undotree | " undotree | ||||||
| nnoremap <leader>ut :UndotreeToggle<cr> | nnoremap <leader>ut :UndotreeToggle<cr> | ||||||
| 
 | 
 | ||||||
| " vim-autotag |  | ||||||
| let g:autotagTagsFile = '.ctags' |  | ||||||
| 
 |  | ||||||
| " TagBar | " TagBar | ||||||
| nnoremap <leader>tb :TagbarOpen fj<CR> | nnoremap <leader>tb :TagbarOpen fj<CR> | ||||||
| nnoremap <leader>] :tag /[.#@]<c-r>=expand('<cword>')<cr><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