Get to partly working state on my template autocmd
It doesn't currently take me to the marker so I have stoped it deleting the first on load. It now takes me to the firt line and I have to push i<space><space> to go to my first mark.
This commit is contained in:
		
							parent
							
								
									cd7086d356
								
							
						
					
					
						commit
						c6e3829c62
					
				
					 1 changed files with 5 additions and 4 deletions
				
			
		
							
								
								
									
										9
									
								
								.vimrc
									
										
									
									
									
								
							
							
						
						
									
										9
									
								
								.vimrc
									
										
									
									
									
								
							|  | @ -82,9 +82,10 @@ function! NextMark() | ||||||
| endfunction | endfunction | ||||||
| 
 | 
 | ||||||
| function! NewHtml() | function! NewHtml() | ||||||
| 	execute "normal! :read ~/Templates/html" | 	read ~/Templates/html | ||||||
| 	execute "normal! ggdd" | 	normal! ggdd | ||||||
| 	call NextMark() | 	setlocal filetype=html | ||||||
|  | 	"call NextMark() | ||||||
| endfunction | endfunction | ||||||
| 
 | 
 | ||||||
| " Mappings {{{1 | " Mappings {{{1 | ||||||
|  | @ -182,7 +183,7 @@ augroup END | ||||||
| " | " | ||||||
| augroup new_html | augroup new_html | ||||||
| 	autocmd! | 	autocmd! | ||||||
| 	autocmd BufNew *.html call NewHtml() | 	autocmd BufNew,BufNewFile *.html call NewHtml() | ||||||
| augroup END | augroup END | ||||||
| " | " | ||||||
| augroup file_vim | augroup file_vim | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue