From 89f9112337470b4b7f65e5fe31f39d4c224bae7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcin=20Wo=C5=BAniak?= Date: Sun, 6 Dec 2020 23:45:05 +0100 Subject: [PATCH] Added new vim conf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcin Woźniak --- .config/nvim/init.vim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index b92ceba..19669ed 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -43,11 +43,13 @@ Plug 'tpope/vim-rails' " pip3 install msgpack --user call plug#end() -let g:deoplete#enable_at_startup = 1 +" NerdTree +let NERDTreeShowHidden=1 -"Pass a dictionary to set multiple options +" Deoplete +let g:deoplete#enable_at_startup=1 call deoplete#custom#option({ - \ 'auto_complete_delay': 200, + \ 'auto_complete_delay': 500, \ 'smart_case': v:true, \ 'max_list' : 10, \ }) @@ -72,6 +74,7 @@ set cmdheight=1 syntax on filetype plugin indent on set encoding=utf-8 +set nowrap " livepreviewer let g:livepreview_previewer = 'mupdf' @@ -142,10 +145,10 @@ autocmd BufWritePost *.tex silent! execute "!sudo rm -rf *.fls *.ilg *.nav *.snm autocmd BufWritePost *.tex silent! execute "!sudo pkill -HUP mupdf > /dev/null" | redraw! " mutt -autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 -autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo -autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! -autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! +"autocmd BufRead,BufNewFile /tmp/neomutt* let g:goyo_width=80 +"autocmd BufRead,BufNewFile /tmp/neomutt* :Goyo +"autocmd BufRead,BufNewFile /tmp/neomutt* map ZZ :Goyo\|x! +"autocmd BufRead,BufNewFile /tmp/neomutt* map ZQ :Goyo\|q! " Automatically deletes all trailing whitespace and newlines at end of file on save. autocmd BufWritePre * %s/\s\+$//e