Skip to content

Commit

Permalink
Use neocomplcache seems awesome
Browse files Browse the repository at this point in the history
  • Loading branch information
tmcw committed Nov 3, 2012
1 parent 93ee741 commit 9a5c62c
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 26 deletions.
9 changes: 6 additions & 3 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
[submodule "bundle/ack.vim"]
path = bundle/ack.vim
url = https://github.com/mileszs/ack.vim.git
[submodule "bundle/supertab"]
path = bundle/supertab
url = https://github.com/ervandew/supertab.git
[submodule "bundle/vim-surround"]
path = bundle/vim-surround
url = git://github.com/tpope/vim-surround.git
Expand Down Expand Up @@ -55,3 +52,9 @@
[submodule "bundle/vim-golang"]
path = bundle/vim-golang
url = https://github.com/jnwhiteh/vim-golang.git
[submodule "bundle/vimoutliner"]
path = bundle/vimoutliner
url = https://github.com/vimoutliner/vimoutliner.git
[submodule "bundle/neocomplcache"]
path = bundle/neocomplcache
url = https://github.com/Shougo/neocomplcache.git
36 changes: 16 additions & 20 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@ set nowrap
set hlsearch
set colorcolumn=80

" With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file
let mapleader = ","
let g:mapleader = ","

" Fast saving
nmap <leader>w :w!<cr>
nmap <leader>. :tabnext<cr>
nmap <leader>/ :tabnext<cr>
Expand All @@ -28,6 +22,13 @@ set tabstop=4
set shiftwidth=4
set autoindent
set expandtab
let g:neocomplcache_enable_at_startup = 1

autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS
autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags
autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS
autocmd FileType python setlocal omnifunc=pythoncomplete#Complete
autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags

"SECTION: NERDTree Customization
" \d will hide/show
Expand All @@ -44,14 +45,19 @@ set background=dark
colorscheme Tomorrow-Night
if has("gui_running")
set go-=T
set guifont=M+_1m:h13
set guifont=M+_1m_light:h13
set noballooneval
else
set mouse=a
endif

" Javascript
au BufNewFile,BufRead *.json set filetype=javascript
autocmd BufNewFile,BufRead *.json set filetype=javascript
autocmd BufRead,BufNewFile *.mml set syntax=javascript
autocmd BufRead,BufNewFile *.bones set syntax=javascript

autocmd BufRead,BufNewFile *.result set syntax=xml

au BufNewFile,BufRead *._ set filetype=html

autocmd BufRead,BufNewFile *.mss set syntax=carto
Expand All @@ -73,24 +79,14 @@ autocmd InsertEnter * match ExtraWhitespace /\s\+\%#\@<!$/
autocmd InsertLeave * match ExtraWhitespace /\s\+$/
autocmd BufWinLeave * call clearmatches()

nnoremap <leader>gpp :Git push origin master --tags<cr>
nnoremap <leader>gph :Git push origin gh-pages --tags<cr>
nnoremap <leader>w :! git pull origin master && git push origin master --tags<cr>
nnoremap <leader>e :! git pull origin gh-pages && git push origin gh-pages --tags<cr>
set backupdir=/Users/tmcw/tmp/
set directory=/Users/tmcw/tmp/
set nobackup
set nowritebackup

" Settings for VimClojure
let g:clj_highlight_builtins=1 " Highlight Clojure's builtins
let g:clj_paren_rainbow=1 " Rainbow parentheses'!
let vimclojure#FuzzyIndent=1
let vimclojure#HighlightBuiltins=1
let vimclojure#HighlightContrib=1
let vimclojure#DynamicHighlighting=1
let vimclojure#ParenRainbow=1
let vimclojure#WantNailgun = 1

function! HtmlEscape()
silent s/&/\&amp;/eg
silent s/</\&lt;/eg
Expand Down
1 change: 1 addition & 0 deletions bundle/neocomplcache
Submodule neocomplcache added at a1f2a6
1 change: 0 additions & 1 deletion bundle/snipmate
Submodule snipmate deleted from f5a75d
1 change: 0 additions & 1 deletion bundle/supertab
Submodule supertab deleted from 830277
1 change: 0 additions & 1 deletion bundle/vim-css-color
Submodule vim-css-color deleted from 417eaf
1 change: 1 addition & 0 deletions bundle/vimoutliner
Submodule vimoutliner added at 8d6fbc

0 comments on commit 9a5c62c

Please sign in to comment.