From 4654d5c27926796979bdcf447a89e79a29eedac3 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Wed, 3 Jun 2015 18:10:29 +0100 Subject: local changes on server --- vimrc | 59 ++++++++++++++++++++++++++++++++++++++++++----------------- 1 file changed, 42 insertions(+), 17 deletions(-) diff --git a/vimrc b/vimrc index f6b1027..0e03d88 100644 --- a/vimrc +++ b/vimrc @@ -6,26 +6,33 @@ call vundle#rc() "" Plugins Plugin 'gmarik/vundle' -Plugin 'LaTeX-Box-Team/latex-box' -Plugin 'SirVer/ultisnips' Plugin 'airblade/vim-gitgutter' Plugin 'altercation/vim-colors-solarized' +Plugin 'AndrewRadev/splitjoin.vim' Plugin 'bling/vim-airline' Plugin 'christoomey/vim-tmux-navigator' Plugin 'edkolev/tmuxline.vim' +Plugin 'freeo/vim-kalisi' Plugin 'godlygeek/tabular' Plugin 'gregsexton/gitv' Plugin 'honza/vim-snippets' Plugin 'jamessan/vim-gnupg' -Plugin 'terryma/vim-multiple-cursors' -Plugin 'jeetsukumaran/vim-buffergator' -Plugin 'AndrewRadev/splitjoin.vim' +Plugin 'junegunn/seoul256.vim' +Plugin 'junegunn/fzf' Plugin 'kien/ctrlp.vim' +Plugin 'LaTeX-Box-Team/latex-box' Plugin 'majutsushi/tagbar' +Plugin 'mileszs/ack.vim' +Plugin 'rdnetto/YCM-Generator' Plugin 'scrooloose/nerdtree' Plugin 'scrooloose/syntastic' +Plugin 'SirVer/ultisnips' Plugin 'sjl/Gundo.vim' +Plugin 'szw/vim-ctrlspace' +Plugin 'terryma/vim-multiple-cursors' +Plugin 'tomasr/molokai' Plugin 'tommcdo/vim-exchange' +Plugin 'ton/vim-bufsurf' Plugin 'tpope/vim-abolish' Plugin 'tpope/vim-commentary' Plugin 'tpope/vim-fugitive' @@ -35,6 +42,9 @@ Plugin 'tpope/vim-scriptease' Plugin 'tpope/vim-sensible' Plugin 'tpope/vim-surround' Plugin 'tpope/vim-unimpaired' +Plugin 'troydm/zoomwintab.vim' +Plugin 'Valloric/YouCompleteMe' + filetype plugin indent on syntax on @@ -51,7 +61,7 @@ let g:UltiSnipsJumpBackwardTrigger="" let g:UltiSnipsJumpForwardTrigger="" let g:UltiSnipsListSnippets="" let g:UltiSnipsSnippetDirectories=['UltiSnips', 'mySnippets'] -let g:UltiSnipsSnippetsDir="~/.vim/mySnippets" +let g:UltiSnipsSnippetsDir="~/.nvim/mySnippets" let g:airline_left_sep='' let g:airline_right_sep='' @@ -60,9 +70,7 @@ let g:airline_section_y = '' let g:airline_section_z = '%3p%%|%3l|%3c' let g:airline_theme='base16' let g:airline#extensions#tabline#enabled = 0 - -let g:buffergator_display_regime='bufname' -let g:buffergator_vsplit_size=30 +let g:airline_exclude_preview = 0 let g:bufferline_active_buffer_left = '' let g:bufferline_active_buffer_right = '' @@ -70,6 +78,7 @@ let g:bufferline_echo = 0 let g:bufferline_modified = '+' let g:bufferline_rotate = 0 +nnoremap :CtrlPMRUFiles let g:ctrlp_by_filename = 1 let g:ctrlp_cmd = 'CtrlPBuffer' let g:ctrlp_map = '' @@ -77,6 +86,11 @@ let g:ctrlp_open_new_file = 't' let g:ctrlp_show_hidden = 1 let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] let g:ctrlp_working_path_mode = 'r' +let g:ctrlp_prompt_mappings = { + \ 'PrtSelectMove("j")': [''], + \ 'PrtSelectMove("k")': [''], + \ 'PrtHistory(-1)': [''], + \ 'PrtHistory(1)': [''],} let g:syntastic_cpp_compiler = "g++" let g:syntastic_cpp_compiler_options = "-std=c++11 -Wall -Wextra -Wpedantic" @@ -97,6 +111,11 @@ let NERDTreeIgnore=['\.pdf$', '\~$','\.toc$', \ '\.out$', '\.log$','\.aux$','\.sty$', \ '\.fdb_latexmk$', '\.synctex.gz$','\.latexmain$'] +let g:ycm_key_list_select_completion = ['', ''] +let g:ycm_key_list_previous_completion = ['', ''] +let g:ycm_auto_trigger = 1 +let g:ycm_confirm_extra_conf = 1 + "" Vim options " Tabs and indent @@ -108,7 +127,7 @@ set shiftwidth=4 " Folds set foldcolumn=0 -set foldenable +set nofoldenable set foldmethod=expr set foldlevel=0 @@ -116,7 +135,7 @@ set foldlevel=0 set noswapfile set nowritebackup set undofile -set undodir=/home/urbain/.vim/vimundo/ +set undodir=/home/urbain/.nvim/vimundo/ " Layout window set nonumber @@ -144,16 +163,20 @@ set spellfile="/home/urbain/.vim/spell/en.utf-8.add" set smartcase set ignorecase - +" Misc set noautochdir set cpoptions+=Iq set encoding=utf-8 set mouse=a set clipboard=unnamedplus set lazyredraw +set hidden " Colorscheme try | colorscheme solarized | catch | endtry +highlight Comment cterm=italic +set t_ZH= +set t_ZR= "" Maps @@ -175,7 +198,6 @@ nnoremap ps :PluginSearch " Toggles nnoremap cop :set paste! -nnoremap tb :BuffergatorToggle nnoremap tg :GitGutterToggle nnoremap tn :NERDTreeToggle nnoremap tt :TagbarToggle @@ -187,16 +209,19 @@ nnoremap sc :source % " File edits nnoremap es :UltiSnipsEdit -nnoremap em :e ~/.mutt/muttrc -nnoremap ev :e ~/.vimrc -nnoremap ez :e ~/.zshrc -nnoremap et :e ~/.tmux.conf +nnoremap em :e ~/dotfiles/mutt/muttrc +nnoremap en :e ~/dotfiles/nvimrc +nnoremap ev :e ~/dotfiles/vimrc +nnoremap ez :e ~/dotfiles/zshrc +nnoremap et :e ~/dotfiles/tmux.conf " Formatting nnoremap fw :%s/\s\+$// nnoremap fi zzmxgg=G'x " Navigation +nnoremap (( :BufSurfBack +nnoremap )) :BufSurfForward nnoremap 3 nnoremap 3 nnoremap o -- cgit v1.2.3