Skip to content

Instantly share code, notes, and snippets.

@renanivo
renanivo / neocomplcache-keymaps.vim
Created April 17, 2012 15:36
use tabs in vim's neocomplcache plugin
" 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()
PS1='\[\033[38m\]\u@\h\[\033[01;34m\] \w \[\033[31m\]`git branch 2>/dev/null | grep \* | head -1 | sed "s/\* //g" | awk "{ print \"(\"\\\$1 \")\" }"`\n\[\033[29m\]$\[\033[00m\] '
@renanivo
renanivo / .vimrc
Last active September 5, 2015 01:25
My .vimrc
" Import dotVIM (https://github.com/renanivo/dotvim)
source ~/.vim/vimrc
" Usability {{{
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set foldmethod=marker