completion and highlighting
This commit is contained in:
		
							parent
							
								
									63ecbcc708
								
							
						
					
					
						commit
						b07c0fa407
					
				| 
						 | 
				
			
			@ -1,5 +1,8 @@
 | 
			
		|||
let g:netrw_dirhistmax  =10
 | 
			
		||||
let g:netrw_dirhistcnt =1
 | 
			
		||||
let g:netrw_dirhistcnt =4
 | 
			
		||||
let g:netrw_dirhist_4='/home/whackx'
 | 
			
		||||
let g:netrw_dirhist_3='/home/whackx/.local/share/sqlmap/output/10.10.11.220'
 | 
			
		||||
let g:netrw_dirhist_2='/home/whackx/Documents/tryhackme/Flip'
 | 
			
		||||
let g:netrw_dirhist_1='/home/stefan/Documents/husk'
 | 
			
		||||
let g:netrw_dirhist_0='/home/stefan/Documents/husk/static/js'
 | 
			
		||||
let g:netrw_dirhist_9='/home/stefan/Documents/husk/static'
 | 
			
		||||
| 
						 | 
				
			
			@ -7,6 +10,3 @@ let g:netrw_dirhist_8='/home/stefan/Documents/husk/templates/status_code'
 | 
			
		|||
let g:netrw_dirhist_7='/home/stefan'
 | 
			
		||||
let g:netrw_dirhist_6='/etc/NetworkManager/conf.d'
 | 
			
		||||
let g:netrw_dirhist_5='/etc/NetworkManager'
 | 
			
		||||
let g:netrw_dirhist_4='/etc'
 | 
			
		||||
let g:netrw_dirhist_3='/etc/netctl'
 | 
			
		||||
let g:netrw_dirhist_2='/etc/netctl/interfaces'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										32
									
								
								vim/.vimrc
								
								
								
								
							
							
						
						
									
										32
									
								
								vim/.vimrc
								
								
								
								
							| 
						 | 
				
			
			@ -7,6 +7,7 @@ filetype plugin on
 | 
			
		|||
set tabstop=4 shiftwidth=4 autoindent smartindent expandtab 
 | 
			
		||||
"set noswapfile
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
" Numbering of lines
 | 
			
		||||
" set relativenumber
 | 
			
		||||
set number
 | 
			
		||||
| 
						 | 
				
			
			@ -122,3 +123,34 @@ packloadall
 | 
			
		|||
" Load all of the helptags now, after plugins have been loaded.
 | 
			
		||||
" All messages and errors will be ignored.
 | 
			
		||||
silent! helptags ALL
 | 
			
		||||
 | 
			
		||||
" ---------- Code Highlighting 
 | 
			
		||||
" hlsearch colors
 | 
			
		||||
highlight Search ctermbg=black ctermfg=darkgrey ctermbg=grey
 | 
			
		||||
" Highlight all instances of word under cursor, when idle.
 | 
			
		||||
function! AutoHighlightToggle()
 | 
			
		||||
  let @/ = ''
 | 
			
		||||
    augroup auto_highlight
 | 
			
		||||
      au!
 | 
			
		||||
      au CursorHold * let @/ = '\V\<'.escape(expand('<cword>'), '\').'\>'
 | 
			
		||||
    augroup end
 | 
			
		||||
    setl updatetime=300
 | 
			
		||||
endfunction
 | 
			
		||||
call AutoHighlightToggle()
 | 
			
		||||
 | 
			
		||||
" ----------- Code Completion
 | 
			
		||||
 | 
			
		||||
" set omnifunc=syntaxcomplete#Complete
 | 
			
		||||
set omnifunc=ale#completion#Complete
 | 
			
		||||
let g:ale_completion_enabled=1
 | 
			
		||||
let g:ale_set_balloons=1
 | 
			
		||||
function! OpenCompletion()
 | 
			
		||||
    if !pumvisible() && ((v:char >= 'a' && v:char <= 'z') || (v:char >= 'A' && v:char <= 'Z'))
 | 
			
		||||
        call feedkeys("\<C-x>\<C-o>", "n")
 | 
			
		||||
    endif
 | 
			
		||||
endfunction
 | 
			
		||||
 | 
			
		||||
set completeopt+=menuone,noselect,noinsert
 | 
			
		||||
 
 | 
			
		||||
autocmd InsertCharPre * call OpenCompletion()
 | 
			
		||||
autocmd CompleteDone * pclose
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue