Commit cabd6ff6 authored by Murukesh Mohanan's avatar Murukesh Mohanan

readme update; ycm-related stuff

parent 2129213a
......@@ -15,10 +15,11 @@ If you opened a root-owned file but forgot to use `sudo`, use `:w!!` to write.
nore ; :
nore , ;
## [Plugins](bundle)
- [Pathogen](https://github.com/tpope/vim-pathogen) - for autoloading plugins
Since I use `vim-plug` to handle plugins, a `:PlugInstall` would be appropriate on first run.
- [vim-plug](https://github.com/junegunn/vim-plug) - for managing plugins
- [supertab](https://github.com/ervandew/supertab) - for completion awesomeness
- [syntastic](https://github.com/scrooloose/syntastic) - for highlighting the living daylights out of syntax errors
- [YouCompleteMe](https://github.com/Valloric/YouCompleteMe.git)
......
......@@ -112,7 +112,7 @@ Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'js']}
Plug 'fatih/vim-go', {'for': 'go'}
" YCM command lifted from vim-plug readme
Plug 'Valloric/YouCompleteMe', { 'do': 'python2 ./install.py --clang-completer --gocode-completer --tern-completer', 'for': ['cpp', 'c', 'go', 'sh', 'js'] }
Plug 'Valloric/YouCompleteMe', { 'do': 'python2 ./install.py --clang-completer --gocode-completer --tern-completer', 'for': ['cpp', 'c', 'go', 'sh', 'js', 'vim'] }
autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif
Plug 'godlygeek/tabular'
......@@ -120,6 +120,13 @@ Plug 'godlygeek/tabular'
Plug 'vim-scripts/deb.vim'
call plug#end()
function! EnableYCM()
call plug#load('YouCompleteMe')
call youcompleteme#Enable()
endfunction
nnoremap <leader>ycm :call EnableYCM()<cr>
colorscheme molokai
highlight Normal ctermbg=none
highlight NonText ctermbg=none
......@@ -160,6 +167,7 @@ let g:DiffUpdate = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_python_binary_path = '/usr/bin/python3'
if !empty($MAN_PN)
autocmd StdinReadPost * set ft=man | file $MAN_PN
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment