| 
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -49,6 +49,7 @@ Plug 'othree/yajs.vim', { 'for': 'javascript' } " JavaScript syntax plugin | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					Plug 'othree/es.next.syntax.vim', { 'for': 'javascript' } " ES6 and beyond syntax | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					Plug 'ternjs/tern_for_vim', { 'for': 'javascript', 'do': 'npm install' } " Ternjs for vim | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					Plug 'https://github.com/othree/jspc.vim', { 'for': 'javascript' } " Function parameter completion | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					Plug 'heavenshell/vim-jsdoc', { 'for': 'javascript' } " Generate JSDoc comments | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					Plug 'posva/vim-vue', { 'for': [ 'javascript', 'html' ] } " vue.js integration | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" Go | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -112,8 +113,8 @@ set title                   " set terminal title | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" Uncomment the following to have Vim jump to the last position when | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" reopening a file | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					if has("autocmd") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    \| exe "normal! g'\"" | endif | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    au BufReadPost * if line("'\"") > 0 && line("'\"") <= line("$") | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					                \| exe "normal! g'\"" | endif | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					endif | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" P L U G I N S | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -158,10 +159,10 @@ let g:neocomplete#sources#syntax#min_keyword_length = 3 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" Define dictionary. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					let g:neocomplete#sources#dictionary#dictionaries = { | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    \ 'default' : '', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    \ 'vimshell' : $HOME.'/.vimshell_hist', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    \ 'scheme' : $HOME.'/.gosh_completions' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					        \ } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            \ 'default' : '', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            \ 'vimshell' : $HOME.'/.vimshell_hist', | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            \ 'scheme' : $HOME.'/.gosh_completions' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            \ } | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" Define keyword. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					if !exists('g:neocomplete#keyword_patterns') | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -177,9 +178,9 @@ inoremap <expr><C-l>     neocomplete#complete_common_string() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" <CR>: close popup and save indent. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					inoremap <silent> <CR> <C-r>=<SID>my_cr_function()<CR> | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					function! s:my_cr_function() | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  " For no inserting <CR> key. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  "return pumvisible() ? "\<C-y>" : "\<CR>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    return (pumvisible() ? "\<C-y>" : "" ) . "\<CR>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    " For no inserting <CR> key. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    "return pumvisible() ? "\<C-y>" : "\<CR>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					endfunction | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" <TAB>: completion. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					inoremap <expr><TAB>  pumvisible() ? "\<C-n>" : "\<TAB>" | 
				
			
			
		
	
	
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
				
				 | 
				
					@ -207,7 +208,7 @@ autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" Enable heavy omni completion. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					if !exists('g:neocomplete#sources#omni#input_patterns') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  let g:neocomplete#sources#omni#input_patterns = {} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    let g:neocomplete#sources#omni#input_patterns = {} | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					endif | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					"let g:neocomplete#sources#omni#input_patterns.php = '[^. \t]->\h\w*\|\h\w*::' | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					"let g:neocomplete#sources#omni#input_patterns.c = '[^.[:digit:] *\t]\%(\.\|->\)' | 
				
			
			
		
	
	
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
				
				 | 
				
					@ -228,10 +229,10 @@ xmap <C-k>     <Plug>(neosnippet_expand_target) | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" \ neosnippet#expandable_or_jumpable() ? | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" \    "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					smap <expr><TAB> neosnippet#expandable_or_jumpable() ? | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					\ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					            \ "\<Plug>(neosnippet_expand_or_jump)" : "\<TAB>" | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					
 | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					" For conceal markers. | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					if has('conceal') | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					  set conceallevel=2 concealcursor=niv | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					    set conceallevel=2 concealcursor=niv | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					endif | 
				
			
			
		
	
		
			
				
					 | 
					 | 
				
				 | 
				
					let g:neosnippet#snippets_directory = '~/.dotfiles/vim/neosnippets' |