From 8f0cb15b558a403f79864f3d624c5e5d883b7c07 Mon Sep 17 00:00:00 2001 From: julian T Date: Sat, 8 Dec 2018 12:39:24 +0100 Subject: Lots of new config and settings --- .vimrc | 104 ++++++++++++++++++++++++++++++++++------------------------------- 1 file changed, 54 insertions(+), 50 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index cd35a78..ee76460 100644 --- a/.vimrc +++ b/.vimrc @@ -2,44 +2,38 @@ set nocompatible " be iMproved, required filetype plugin on -" set the runtime path to include Vundle and initialize -set rtp+=~/.vim/bundle/Vundle.vim -call vundle#begin() -" alternatively, pass a path where Vundle should install plugins -"call vundle#begin('~/some/path/here') +" Plugins + " set the runtime path to include Vundle and initialize + set rtp+=~/.vim/bundle/Vundle.vim + call vundle#begin() + " alternatively, pass a path where Vundle should install plugins + "call vundle#begin('~/some/path/here') -" let Vundle manage Vundle, required -Plugin 'VundleVim/Vundle.vim' + " let Vundle manage Vundle, required + Plugin 'VundleVim/Vundle.vim' -Plugin 'tpope/vim-surround' -Plugin 'tpope/vim-repeat' -Plugin 'tpope/vim-fugitive' + Plugin 'ervandew/supertab' -Plugin 'vim-latex/vim-latex' + Plugin 'tpope/vim-surround' + Plugin 'tpope/vim-repeat' -Plugin 'racer-rust/vim-racer' + Plugin 'racer-rust/vim-racer' + Plugin 'davidhalter/jedi-vim' -Plugin 'zchee/deoplete-jedi' + Plugin 'agude/vim-eldar' + Plugin 'scrooloose/nerdtree' -if has("nvim") - Plugin 'Shougo/deoplete.nvim' -else - Plugin 'Shougo/deoplete.nvim' - Plugin 'roxma/nvim-yarp' - Plugin 'roxma/vim-hug-neovim-rpc' -endif + " Track the engine. + Plugin 'SirVer/ultisnips' -Plugin 'agude/vim-eldar' -Plugin 'scrooloose/nerdtree' + " Snippets are separated from the engine. Add this if you want them: + Plugin 'honza/vim-snippets' -" Track the engine. -Plugin 'SirVer/ultisnips' + Plugin 'junegunn/goyo.vim' + Plugin 'jreybert/vimagit' -" Snippets are separated from the engine. Add this if you want them: -Plugin 'honza/vim-snippets' - -call vundle#end() " required -filetype plugin indent on " required + call vundle#end() " required + filetype plugin indent on " required colorscheme eldar @@ -52,36 +46,46 @@ set shiftwidth=4 set softtabstop=4 set noexpandtab -let g:deoplete#enable_at_startup = 1 +set inccommand=split -tnoremap +" Required for operations modifying multiple buffers like rename. +set hidden -" Map C-s -noremap :update +" Snippits + " Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. + let g:UltiSnipsExpandTrigger="" + let g:UltiSnipsJumpForwardTrigger="" + let g:UltiSnipsJumpBackwardTrigger="" -map :NERDTreeToggle + " If you want :UltiSnipsEdit to split your window. + let g:UltiSnipsEditSplit="vertical" -" Required for operations modifying multiple buffers like rename. -set hidden + " inoremap pumvisible() ? "\" : "\" + " inoremap pumvisible() ? "\" : "\" +" File finding + set path+=** + set wildmenu -" Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. -let g:UltiSnipsExpandTrigger="" -let g:UltiSnipsJumpForwardTrigger="" -let g:UltiSnipsJumpBackwardTrigger="" + let g:netrw_liststyle=3 -" If you want :UltiSnipsEdit to split your window. -let g:UltiSnipsEditSplit="vertical" +" autocmd BufEnter * call ncm2#enable_for_buffer() +" let g:ncm2#auto_popup = 0 +set completeopt=menuone,preview -inoremap pumvisible() ? "\" : "\" -inoremap pumvisible() ? "\" : "\" +" Keymapping + map :NERDTreeToggle -" File finding -set path+=** -set wildmenu + " Leader stuff + let mapleader=" " -let g:netrw_liststyle=3 + map z :Goyo + map mm :make V=1 + map mf :make flash V=1 + " Example on filetype specific + " autocmd FileType tex map o :w !detex \| wc -w -set inccommand=split -autocmd FileType python setlocal completeopt-=preview +" Enforcing filetypes + autocmd BufRead,BufNewFile *.ino set filetype=c + autocmd FileType python setlocal completeopt-=preview -- cgit v1.2.3