Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
home
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Murukesh Mohanan
home
Commits
f22a24b0
Commit
f22a24b0
authored
Mar 13, 2016
by
Murukesh Mohanan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
readme update; ycm-related stuff
parent
4dd8d9a8
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
3 deletions
+12
-3
.vim/README.md
.vim/README.md
+3
-2
.vim/vimrc
.vim/vimrc
+9
-1
No files found.
.vim/README.md
View file @
f22a24b0
...
@@ -15,10 +15,11 @@ If you opened a root-owned file but forgot to use `sudo`, use `:w!!` to write.
...
@@ -15,10 +15,11 @@ If you opened a root-owned file but forgot to use `sudo`, use `:w!!` to write.
nore ; :
nore ; :
nore , ;
nore , ;
## [Plugins](bundle)
## [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
-
[
supertab
](
https://github.com/ervandew/supertab
)
- for completion awesomeness
-
[
syntastic
](
https://github.com/scrooloose/syntastic
)
- for highlighting the living daylights out of syntax errors
-
[
syntastic
](
https://github.com/scrooloose/syntastic
)
- for highlighting the living daylights out of syntax errors
-
[
YouCompleteMe
](
https://github.com/Valloric/YouCompleteMe.git
)
-
[
YouCompleteMe
](
https://github.com/Valloric/YouCompleteMe.git
)
...
...
.vim/vimrc
View file @
f22a24b0
...
@@ -112,7 +112,7 @@ Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'js']}
...
@@ -112,7 +112,7 @@ Plug 'majutsushi/tagbar', {'for': ['cpp', 'c', 'go', 'sh', 'js']}
Plug 'fatih/vim-go', {'for': 'go'}
Plug 'fatih/vim-go', {'for': 'go'}
" YCM command lifted from vim-plug readme
" 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
autocmd! User YouCompleteMe if !has('vim_starting') | call youcompleteme#Enable() | endif
Plug 'godlygeek/tabular'
Plug 'godlygeek/tabular'
...
@@ -120,6 +120,13 @@ Plug 'godlygeek/tabular'
...
@@ -120,6 +120,13 @@ Plug 'godlygeek/tabular'
Plug 'vim-scripts/deb.vim'
Plug 'vim-scripts/deb.vim'
call plug#end()
call plug#end()
function! EnableYCM()
call plug#load('YouCompleteMe')
call youcompleteme#Enable()
endfunction
nnoremap <leader>ycm :call EnableYCM()<cr>
colorscheme molokai
colorscheme molokai
highlight Normal ctermbg=none
highlight Normal ctermbg=none
highlight NonText ctermbg=none
highlight NonText ctermbg=none
...
@@ -160,6 +167,7 @@ let g:DiffUpdate = 1
...
@@ -160,6 +167,7 @@ let g:DiffUpdate = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_seed_identifiers_with_syntax = 1
let g:ycm_python_binary_path = '/usr/bin/python3'
if !empty($MAN_PN)
if !empty($MAN_PN)
autocmd StdinReadPost * set ft=man | file $MAN_PN
autocmd StdinReadPost * set ft=man | file $MAN_PN
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment