Created
February 23, 2014 04:12
-
-
Save sbeckeriv/9166720 to your computer and use it in GitHub Desktop.
neovim vunder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
set runtimepath=~/.neovim/ | |
filetype off | |
set rtp+=~/.neovim/bundle/vundle/ | |
call vundle#rc('~/.neovim/bundle') | |
Bundle 'gmarik/vundle' | |
Bundle 'L9' | |
Bundle 'FuzzyFinder' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'tpope/vim-rails.git' | |
" janus | |
Bundle 'kana/vim-textobj-user' | |
Bundle 'MarcWeber/vim-addon-mw-utils' | |
Bundle 'garbas/vim-snipmate' | |
Bundle 'nelstrom/vim-textobj-rubyblock' | |
Bundle 'honza/vim-snippets' | |
Bundle 'ervandew/supertab' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'mileszs/ack.vim' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'terryma/vim-multiple-cursors' | |
Bundle 'tomtom/tlib_vim' | |
Bundle 'tpope/vim-bundler' | |
Bundle 'tpope/vim-endwise' | |
Bundle 'tpope/vim-eunuch' | |
Bundle 'tpope/vim-fugitive' | |
Bundle 'tpope/vim-rails' | |
Bundle 'tpope/vim-rake' | |
Bundle 'tpope/vim-repeat' | |
Bundle 'tpope/vim-sensible' | |
Bundle 'tpope/vim-surround' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'benmills/vim-golang-alternate' | |
Bundle 'airblade/vim-gitgutter' | |
Bundle 'cakebaker/scss-syntax.vim' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'pangloss/vim-javascript' | |
Bundle 'slim-template/vim-slim' | |
Bundle 'sunaku/vim-ruby-minitest' | |
Bundle 'tpope/vim-git' | |
Bundle 'tpope/vim-haml' | |
Bundle 'tpope/vim-markdown' | |
Bundle 'vim-ruby/vim-ruby' | |
Bundle 'groenewege/vim-less' | |
" Theams | |
Bundle 'jpo/vim-railscasts-theme' | |
Bundle 'git://git.wincent.com/command-t.git' | |
filetype plugin indent on | |
let mapleader = "," | |
colorscheme railscasts | |
set hlsearch " Highlight searches | |
set incsearch " Do incremental searching | |
set expandtab | |
set tabstop=2 shiftwidth=2 softtabstop=2 | |
set autoindent | |
set history=200000 | |
set showcmd | |
set wrap | |
set cmdheight=5 | |
set scrolloff=10 | |
set cryptmethod=blowfish | |
set spell | |
set wildignore+=*.png,*.jpg,*.gif,*.ai,*.jpeg,*.psd,*.swp,*.jar,*.zip,*.gem,.DS_Store,log/**,tmp/**,coverage/**,rdoc/**,output_*,*.xpi,doc/** | |
set wildmode=longest,list:longest | |
set completeopt=menu,preview | |
nnoremap gr :B ack <C-r><C-w><CR> | |
nnoremap gt :B ack -Q "def <C-r><C-w>"<CR> | |
map <silent><F8> :NERDTree<CR> | |
map <tab> :tabn<CR> | |
map <D-P> :NERDTreeToggle<CR> | |
map vv :CtrlP<CR> | |
:imap jj <Esc> | |
command! -complete=shellcmd -nargs=+ B call s:RunShellCommand(<q-args>) | |
function! s:RunShellCommand(cmdline) | |
echo a:cmdline | |
let expanded_cmdline = a:cmdline | |
for part in split(a:cmdline, ' ') | |
if part[0] =~ '\v[%#<]' | |
let expanded_part = fnameescape(expand(part)) | |
let expanded_cmdline = substitute(expanded_cmdline, part, expanded_part, '') | |
endif | |
endfor | |
botright new | |
setlocal buftype=nofile bufhidden=wipe nobuflisted noswapfile nowrap | |
call setline(1, 'You entered: ' . a:cmdline) | |
call setline(2, 'Expanded Form: ' .expanded_cmdline) | |
call setline(3,substitute(getline(2),'.','=','g')) | |
execute '$read !'. expanded_cmdline | |
setlocal nomodifiable | |
1 | |
endfunction | |
command RemoveMultipleBlankLines %s/^\(\s*\n\)\+/\r |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment