summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreas@tuxedobook2019-04-26 00:01:13 +0200
committerandreas@tuxedobook2019-04-26 00:01:13 +0200
commitfce126971fcbc687e62757df30e7f09eadb119eb (patch)
tree02bbb698233fabbf379d4247345f25aa297a4502
parent9bd6f605c1c546929ddb4c2436595f56167a1af4 (diff)
downloaddotfiles-fce126971fcbc687e62757df30e7f09eadb119eb.zip
dotfiles-fce126971fcbc687e62757df30e7f09eadb119eb.tar.gz
Added custom YouCompleteMe config to _vimrc
-rw-r--r--src/vi/_vimrc12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/vi/_vimrc b/src/vi/_vimrc
index bc394a5..2162570 100644
--- a/src/vi/_vimrc
+++ b/src/vi/_vimrc
@@ -170,6 +170,18 @@ map <silent> ,cc :<C-B>silent <C-E>s/^/<C-R>=escape(b:comment_leader,'\/')<CR>/<
map <silent> ,cu :<C-B>silent <C-E>s/^\V<C-R>=escape(b:comment_leader,'\/')<CR>//e<CR>:nohlsearch<CR>
+" YCM config ------------------------------------------------------------------
+
+command YcmEnable call YcmEnable()
+function YcmEnable()
+ unlet b:ycm_largefile
+endfunction
+command YcmDisable call YcmDisable()
+function YcmDisable()
+ let b:ycm_largefile = 1
+endfunction
+
+
" OS integration --------------------------------------------------------------
if has("win32")