[vim] Use a separate viminfo file for neovim because the formats are different
This commit is contained in:
		
							parent
							
								
									e8bacd23dd
								
							
						
					
					
						commit
						29cacbea11
					
				
					 1 changed files with 5 additions and 1 deletions
				
			
		
							
								
								
									
										4
									
								
								vimrc
									
										
									
									
									
								
							
							
						
						
									
										4
									
								
								vimrc
									
										
									
									
									
								
							| 
						 | 
					@ -114,7 +114,11 @@ set undofile            " save undo history
 | 
				
			||||||
set undodir=$VIM/undo   " save undo files here
 | 
					set undodir=$VIM/undo   " save undo files here
 | 
				
			||||||
set history=1000        " remember 1000 commands in history
 | 
					set history=1000        " remember 1000 commands in history
 | 
				
			||||||
set undolevels=1000     " keep lots of undo history
 | 
					set undolevels=1000     " keep lots of undo history
 | 
				
			||||||
 | 
					if !has('nvim')
 | 
				
			||||||
    set viminfo=%100,'100,/100,h,\"500,:100,n$VIM/.viminfo
 | 
					    set viminfo=%100,'100,/100,h,\"500,:100,n$VIM/.viminfo
 | 
				
			||||||
 | 
					else
 | 
				
			||||||
 | 
					    set viminfo=%100,'100,/100,h,\"500,:100,n$VIM/.nviminfo
 | 
				
			||||||
 | 
					endif
 | 
				
			||||||
                        " I have *NO* idea what this does...
 | 
					                        " I have *NO* idea what this does...
 | 
				
			||||||
 | 
					
 | 
				
			||||||
set backspace=indent,eol,start
 | 
					set backspace=indent,eol,start
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue