From a1861b81489ea77f2df9541efa7ebd89f4845326 Mon Sep 17 00:00:00 2001 From: Dreaded_X Date: Fri, 5 Sep 2014 19:50:55 +0200 Subject: [PATCH] Added tagbar and stopped vim opening new split when autocompleting --- .gitmodules | 3 +++ install.sh | 10 ++++++++++ vim/bundle/tagbar | 1 + vimrc | 3 +++ 4 files changed, 17 insertions(+) create mode 160000 vim/bundle/tagbar diff --git a/.gitmodules b/.gitmodules index bc5a12c..59b60fa 100644 --- a/.gitmodules +++ b/.gitmodules @@ -16,3 +16,6 @@ [submodule "vim/bundle/YouCompleteMe"] path = vim/bundle/YouCompleteMe url = git@github.com:Valloric/YouCompleteMe.git +[submodule "vim/bundle/tagbar"] + path = vim/bundle/tagbar + url = git@github.com:majutsushi/tagbar.git diff --git a/install.sh b/install.sh index 4c8b2e9..fd6bbb8 100755 --- a/install.sh +++ b/install.sh @@ -46,6 +46,16 @@ while true; do esac done +while true; do + read -p "Do you wish to install CTags? " yn3 + case $yn3 in + [Yy]* ) sudo apt-get install exuberant-ctags + break;; + [Nn]* ) break;; + * ) echo "Please answer yes or no.";; + esac +done + git submodule update --init --recursive diff --git a/vim/bundle/tagbar b/vim/bundle/tagbar new file mode 160000 index 0000000..9ee516e --- /dev/null +++ b/vim/bundle/tagbar @@ -0,0 +1 @@ +Subproject commit 9ee516ee6ff5eb4ac21bb0c5a13b1b6d2bd4919f diff --git a/vimrc b/vimrc index 1a390d0..1ace515 100644 --- a/vimrc +++ b/vimrc @@ -13,4 +13,7 @@ nnoremap :TmuxNavigateUp nnoremap :TmuxNavigateRight map :NERDTreeToggle +nmap :TagbarToggle map \be + +setlocal completeopt-=preview