Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

replaced supertab with neocomplcache

  • Loading branch information...
commit b1fc2d55c1e6684eb258700ff0b73e3454e9e5ad 1 parent 4b5ca75
Harvey Rogers authored
Showing with 41 additions and 0 deletions.
  1. +3 −0  .gitmodules
  2. +37 −0 .vimrc
  3. +1 −0  bundle/neocomplcache
View
3  .gitmodules
@@ -34,3 +34,6 @@
[submodule "bundle/solarized"]
path = bundle/solarized
url = git://github.com/altercation/vim-colors-solarized.git
+[submodule "bundle/neocomplcache"]
+ path = bundle/neocomplcache
+ url = git://github.com/Shougo/neocomplcache.git
View
37 .vimrc
@@ -1,3 +1,5 @@
+" Disabled plugins
+let g:pathogen_disabled = ['supertab']
" Load pathogen modules
call pathogen#infect()
call pathogen#helptags()
@@ -32,6 +34,12 @@ filetype indent on
" Enable syntax highlighting
syntax enable
+" Code folding
+set foldmethod=indent " fold based on indent
+set foldnestmax=10 " deepest fold is 10 levels
+set nofoldenable " don't fold by default
+set foldlevel=1
+
" Smart way to move between windows
map <C-j> <C-W>j
map <C-k> <C-W>k
@@ -70,6 +78,7 @@ if has("gui_running")
" set guioptions-=m " remove menu bar
set guioptions-=T " remove toolbar
set guioptions-=r " remove right-hand scroll bar
+ set guioptions-=l " remove right-hand scroll bar
else
colorscheme molokai
endif
@@ -134,3 +143,31 @@ let g:ackprg="ack-grep -H --nocolor --nogroup --column"
" go back to default 'ra', which sets to the ancestor dir containing .git,
" .hg, etc.
" let g:ctrlp_working_path_mode = 'c'
+
+"""""""""""""""""
+" NeoComplCache
+"""""""""""""""""
+let g:neocomplcache_enable_at_startup = 1
+" Use smartcase.
+let g:neocomplcache_enable_smart_case = 1
+" " Use camel case completion.
+let g:neocomplcache_enable_camel_case_completion = 1
+" " Use underbar completion.
+let g:neocomplcache_enable_underbar_completion = 1
+" " Set minimum syntax keyword length.
+let g:neocomplcache_min_syntax_length = 3
+" Plugin key-mappings.
+imap <C-k> <Plug>(neocomplcache_snippets_expand)
+smap <C-k> <Plug>(neocomplcache_snippets_expand)
+inoremap <expr><C-g> neocomplcache#undo_completion()
+inoremap <expr><C-l> neocomplcache#complete_common_string()
+" Recommended key-mappings.
+" " <CR>: close popup and save indent.
+inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>"
+" " <TAB>: completion.
+inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>"
+" " <C-h>, <BS>: close popup and delete backword char.
+inoremap <expr><C-h> neocomplcache#smart_close_popup()."\<C-h>"
+inoremap <expr><BS> neocomplcache#smart_close_popup()."\<C-h>"
+inoremap <expr><C-y> neocomplcache#close_popup()
+inoremap <expr><C-e> neocomplcache#cancel_popup()
1  bundle/neocomplcache
@@ -0,0 +1 @@
+Subproject commit 8fd9d9697c98e680be05ee33c512d3b69ec007c7
Please sign in to comment.
Something went wrong with that request. Please try again.