Skip to content

Instantly share code, notes, and snippets.

@hergaiety
Created February 26, 2016 00:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hergaiety/f9fc5f68cc2e291f64f2 to your computer and use it in GitHub Desktop.
Save hergaiety/f9fc5f68cc2e291f64f2 to your computer and use it in GitHub Desktop.
set nocompatible
let iCanHazNeoBundle=1
let neobundle_readme=expand($HOME.'/.vim/bundle/neobundle.vim/README.md')
if !filereadable(neobundle_readme)
echo "Installing NeoBundle.."
echo ""
silent !mkdir -p $HOME/.vim/bundle
silent !git clone https://github.com/Shougo/neobundle.vim $HOME/.vim/bundle/neobundle.vim
let iCanHazNeoBundle=0
endif
if has('vim_starting')
set rtp+=$HOME/.vim/bundle/neobundle.vim/
endif
call neobundle#begin(expand($HOME.'/.vim/bundle/'))
"NeoBundle 'davidhalter/jedi-vim'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'airblade/vim-gitgutter'
NeoBundle 'Shougo/neobundle.vim'
NeoBundle 'scrooloose/nerdtree'
NeoBundle 'ctrlpvim/ctrlp.vim'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'toranb/tmux-navigator'
NeoBundle 'toranb/nerd-ack'
NeoBundle 'toranb/vim-ack'
NeoBundle 'osyo-manga/vim-over'
NeoBundle 'thinca/vim-qfreplace'
NeoBundle 'tpope/vim-commentary'
NeoBundle 'JarrodCTaylor/vim-reflection'
NeoBundle 'ervandew/supertab'
NeoBundle 'wookiehangover/jshint.vim'
NeoBundle 'mustache/vim-mustache-handlebars'
NeoBundle 'majutsushi/tagbar'
NeoBundle 'justinmk/vim-sneak'
NeoBundle 'vim-airline/vim-airline'
NeoBundle 'vim-airline/vim-airline-themes'
call neobundle#end()
if iCanHazNeoBundle == 0
echo "Installing Bundles, please ignore key map error messages"
echo ""
:NeoBundleInstall
endif
NeoBundleCheck
filetype plugin on
filetype indent on
set nowrap
set t_Co=256
set encoding=utf8
set number
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set undolevels=1000
set hidden
set nobackup
set noswapfile
set noerrorbells
set nowrap
set clipboard=unnamed
set autoread
set autowrite
" vim-airline
set laststatus=2
" List chars
set list " Show invisible characters
set listchars="" " Reset the listchars
set listchars=tab:__ " a tab should display as "__", trailing whitespace as "."
set listchars+=trail:. " show trailing spaces as dots
set listchars+=extends:> " The character to show in the last column when wrap is
" off and the line continues beyond the right of the screen
set listchars+=precedes:< " The character to show in the last column when wrap is
" off and the line continues beyond the right of the screen
" Theme
syntax enable
colorscheme solarized
let g:solarized_termcolors = &t_Co
let g:solarized_termtrans = 1
let g:solarized_termcolors=256
let g:solarized_visibility = "high"
let g:solarized_contrast = "high"
set background=dark
" Sneak
nmap f <Plug>SneakForward
nmap F <Plug>SneakBackward
let g:sneak#streak = 1
let g:jedi#auto_vim_configuration = 0
let g:jedi#goto_command = "<leader>j"
let NERDTreeIgnore = ['\.pyc$']
let g:ctrlp_use_caching=0
let g:ctrlp_custom_ignore = '\v[\/](build)|dist|tmp|bower_components|node_modules|(\.(swp|git|bak|pyc|swp|DS_Store))$'
let g:ctrlp_working_path_mode = 0
let g:ctrlp_max_files=0
let g:ctrlp_max_height = 18
let mapleader=" "
function! s:setup_paste() abort
let s:paste = &paste
set paste
endfunction
function! VisualFindAndReplace()
:OverCommandLine%s/
:w
endfunction
function! VisualFindAndReplaceWithSelection() range
:'<,'>OverCommandLine s/
:w
endfunction
nnoremap <C-S-n> :CtrlP<CR>
nnoremap <Leader>ff :CtrlP<CR>
map <Leader>fb :CtrlPBuffer<CR>
map <Leader>d :NERDTreeToggle<CR>
nmap <Leader>t :TagbarToggle<CR>
nmap <Leader>nt :NERDTreeFind<CR>
nmap <Leader><Leader> <c-^>
nnoremap <Esc><Esc> :nohlsearch<CR>
map <Leader>a :Ack!<space>
nnoremap <Leader>fr :call VisualFindAndReplace()<CR>
xnoremap <Leader>fr :call VisualFindAndReplaceWithSelection()<CR>
nnoremap <silent> yp :call <SID>setup_paste()<CR>a
nnoremap <C-j> <C-w>j
nnoremap <C-k> <C-w>k
nnoremap <C-h> <C-w>h
nnoremap <C-l> <C-w>l
let g:SuperTabDefaultCompletionType = "<c-n>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment