Skip to content

Commit

Permalink
use ultisnips
Browse files Browse the repository at this point in the history
  • Loading branch information
lovelock committed Oct 18, 2015
1 parent f696028 commit 7877640
Showing 1 changed file with 19 additions and 7 deletions.
26 changes: 19 additions & 7 deletions vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,19 @@ highlight SyntasticErrorSign guifg=white guibg=black
" => Auto complete
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Bundle 'Valloric/YouCompleteMe'
let g:ycm_key_list_select_completion=['<c-n>']
" let g:ycm_key_list_select_completion = ['<Down>']
let g:ycm_key_list_previous_completion=['<c-p>']
" let g:ycm_key_list_previous_completion = ['<Up>']
"let g:ycm_key_list_select_completion=['<TAB>', 'Down']
let g:ycm_key_list_select_completion = ['<c-n>']
"let g:ycm_key_list_previous_completion=['<S-TAB>', 'Up']
let g:ycm_key_list_previous_completion = ['<c-p>']
let g:ycm_complete_in_comments = 1
let g:ycm_complete_in_strings = 1
let g:ycm_use_ultisnips_completer = 1
let g:ycm_collect_identifiers_from_comments_and_strings = 1
let g:ycm_collect_identifiers_from_tags_files = 1
let g:ycm_add_preview_to_completeopt = 1
let g:ycm_autoclose_preview_window_after_completion = 1
let g:ycm_autoclose_preview_window_after_insertion = 1
let g:ycm_min_num_of_chars_for_completion = 1

let g:ycm_goto_buffer_command = 'horizontal-split'
" nnoremap <leader>jd :YcmCompleter GoToDefinition<CR>
Expand All @@ -58,17 +60,23 @@ endif
let g:ycm_filetype_blacklist = {
\ 'tagbar' : 1,
\ 'gitcommit' : 1,
\ 'markdown' : 1,
\ 'notes' : 1,
\}

Bundle 'SirVer/ultisnips'
Bundle 'honza/vim-snippets'

let g:UltiSnipsExpandTrigger = "<tab>"
let g:UltiSnipsJumpForwardTrigger = "<tab>"
let g:UltiSnipsJumpBackwardTrigger = "<s-tab>"
let g:UltiSnipsListSnippets = "<c-z>"
let g:UltiSnipsJumpForwardTrigger = "<c-j>"
let g:UltiSnipsJumpBackwardTrigger = "<c-k>"
let g:UltiSnipsSnippetDirectories = ['UltiSnips']
let g:UltiSnipsSnippetsDir = '~/.vim/UltiSnips'
"if you want :UltiSnipsEdit to split your window.
let g:UltiSnipsEditSplit="vertical"
map <leader>us :UltiSnipsEdit<CR>
let g:snips_author = "frostwong@gmail.com"

func! g:JInYCM()
if pumvisible()
Expand Down Expand Up @@ -295,7 +303,6 @@ Bundle 'hdima/python-syntax'
let python_highlight_all = 1
au BufNewFile,BufRead *.wsgi set filetype=python


"############### PHP ###############
Bundle 'shawncplus/phpcomplete.vim'
" default key mapping, needs ctags
Expand Down Expand Up @@ -323,6 +330,11 @@ let g:easytags_auto_highlight = 0

Bundle 'xolox/vim-misc'

"### Graphviz ###
Bundle 'wannesm/wmgraphviz.vim'
noremap <Leader>ll :GraphvizCompile<CR>
noremap <Leader>lv :GraphvizShow<CR>

"###### HTML/JS/JQUERY/CSS #########
" for javascript
Bundle 'jelera/vim-javascript-syntax'
Expand Down

0 comments on commit 7877640

Please sign in to comment.