From 5bedea9656210600c87392cb79295813f59ab1c6 Mon Sep 17 00:00:00 2001 From: Max Christian Pohle Date: Sun, 2 Oct 2016 03:58:37 +0200 Subject: Improved portability for Linux and FreeBSD Removed shell setting, because bash's path can vary. Made Vim-Plug the new default by completely removing Vundle's old 'bundle' folder and added a gvim-buffer.desktop file which can be 'installed' under ~/.local/share/applications/ to allow xdg-conforming file managers to files in an already running vim session as buffer --- gvim-buffer.desktop | 10 ++++++++++ plugged | 1 - plugged/.info | 1 + vimrc | 18 ++++++++++++++++-- 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 gvim-buffer.desktop delete mode 120000 plugged create mode 100644 plugged/.info diff --git a/gvim-buffer.desktop b/gvim-buffer.desktop new file mode 100644 index 0000000..5cd2cbf --- /dev/null +++ b/gvim-buffer.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Name=Gnome Vi IMproved Buffer +Icon=gvim +Comment=Open file in an existing instance of vi and in a new tab +MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-c;text/x-c++; +Exec=gvim -f -N --remote-silent %F +Terminal=false +X-XClassHintResName=VIM +Categories=Utility;TextEditor; diff --git a/plugged b/plugged deleted file mode 120000 index 92d0b93..0000000 --- a/plugged +++ /dev/null @@ -1 +0,0 @@ -bundle/ \ No newline at end of file diff --git a/plugged/.info b/plugged/.info new file mode 100644 index 0000000..8057473 --- /dev/null +++ b/plugged/.info @@ -0,0 +1 @@ +This file must exist, because git does not allow empty directories to be commited. diff --git a/vimrc b/vimrc index 7a9ea91..4f573d4 100644 --- a/vimrc +++ b/vimrc @@ -42,13 +42,17 @@ let g:airline_theme='base16' | " specifies which colors " let g:airline_theme='tomorrow' | " specifies which colorscheme should airline uses " Additional: ========================================. -Plug 'loremipsum' | " Sample text generator Plug 'sheerun/vim-polyglot' | " better syntax highlighting/indentation for multiple languages Plug 'taglist-plus' | " quick code navigator " Autocompleter: =====================================. Plug 'Valloric/MatchTagAlways' Plug 'Valloric/YouCompleteMe' +let g:ycm_collect_identifiers_from_tags_files = 1 " Let YCM read tags from Ctags file +let g:ycm_use_ultisnips_completer = 1 " Default 1, just ensure +let g:ycm_seed_identifiers_with_syntax = 1 " Completion for programming language's keyword +let g:ycm_complete_in_comments = 1 " Completion in comments +let g:ycm_complete_in_strings = 1 " Completion in string Plug 'scrooloose/syntastic' set statusline+=%#warningmsg# set statusline+=%{SyntasticStatuslineFlag()} @@ -63,6 +67,16 @@ Plug 'davidhalter/jedi-vim' | " jedi gets used to disp let g:jedi#completions_enabled = 0 | " we do not need completions, because we have YouCompleteMe let g:jedi#show_call_signatures = 1 | " which sadly does not support signatures like jedi let g:jedi#show_call_signatures_delay = 0 +let g:jedi#auto_vim_configure = 0 +Plug 'SirVer/ultisnips' | " replaces loremipsum (and many more) +Plug 'honza/vim-snippets' | " dependency of ultisnips +" Trigger configuration. Do not use if you use https://github.com/Valloric/YouCompleteMe. +"" Ultisnips +let g:UltiSnipsExpandTrigger="" +let g:UltiSnipsListSnippets="" + +" If you want :UltiSnipsEdit to split your window. +let g:UltiSnipsEditSplit="vertical" " Disabled ===========================================. " Plug 'Shougo/neocomplete.vim' | " alternative to YouCompleteMe in some cases @@ -103,7 +117,7 @@ nnoremap :bp| " use CTRL+Shift+Tab to switch to preview tab nnoremap :TlistToggle| " bind TagList to Hotkey Ctrl+L " settings ============================================. -set shell=/bin/bash | " many scripts rely on bash, so make this the default +" set shell=/bin/bash | " many scripts rely on bash, but its path varies why it is commented out here set noshowmode | " because we are using some powerline derivat set hidden | " allows switiching buffers even if the current buffer contains changes (displays +) set confirm | " asks 'do you want to save?' -- cgit v1.2.3