Last active
December 29, 2015 03:39
-
-
Save neodevelop/7608800 to your computer and use it in GitHub Desktop.
My VIM configuration
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
if has('vim_starting') | |
set nocompatible " Be iMproved | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ | |
syntax enable " Turn on syntax highlighting. | |
"filetype indent on " Turn on file type detection. | |
set showcmd " Display incomplete commands. | |
set showmode " Display the mode you're in. | |
set backspace=indent,eol,start " Intuitive backspacing. | |
set hidden " Handle multiple buffers better. | |
set wildmenu " Enhanced command line completion. | |
set wildmode=list:longest " Complete files like a shell. | |
set ignorecase " Case-insensitive searching. | |
set smartcase " But case-sensitive if expression contains a capital letter. | |
set number " Show line numbers. | |
set ruler " Show cursor position. | |
set incsearch " Highlight matches as you type. | |
set hlsearch " Highlight matches. | |
set wrap " Turn on line wrapping. | |
set scrolloff=0 " Show 3 lines of context around the cursor. | |
set title " Set the terminal's title | |
set visualbell " No beeping. | |
set nobackup " Don't make a backup before overwriting a file. | |
set nowritebackup " And again. | |
set directory=$HOME/.vim/tmp//,. " Keep swap files in one location | |
set tabstop=2 " Global tab width. | |
set shiftwidth=2 " And again, related. | |
set expandtab " Use spaces instead of tabs | |
"set smarttab | |
"set cindent | |
set laststatus=2 " Show the status line all the time | |
"set statusline=[%n]\ %<%.99f\ %h%w%m%r%y\ %{fugitive#statusline()}%{exists('*CapsLockStatusline')?CapsLockStatusline():''}%=%-16(\ %l,%c-%v\ %)%P | |
set wildignore+=*/tmp/*,*.so,*.swp,*.zip,*/target/*,*.class,*.log,*.jar | |
set background=dark | |
"set background=light | |
colorscheme solarized | |
let mapleader = "," | |
" Tab mappings. | |
map <leader>tt :tabnew<cr> | |
map <leader>te :tabedit | |
map <leader>tc :tabclose<cr> | |
map <leader>to :tabonly<cr> | |
map <leader>tn :tabnext<cr> | |
map <leader>tp :tabprevious<cr> | |
map <leader>tf :tabfirst<cr> | |
map <leader>tl :tablast<cr> | |
map <leader>tm :tabmove | |
endif | |
call neobundle#rc(expand('~/.vim/bundle/')) | |
" Let NeoBundle manage NeoBundle | |
NeoBundleFetch 'Shougo/neobundle.vim' | |
" Recommended to install | |
" After install, turn shell ~/.vim/bundle/vimproc, (n,g)make -f your_machines_makefile | |
NeoBundle 'Shougo/vimproc' | |
" My Bundles here: | |
" | |
" Note: You don't set neobundle setting in .gvimrc! | |
" Original repos on github | |
NeoBundle 'tpope/vim-fugitive' | |
NeoBundle 'Lokaltog/vim-easymotion', '09c0cea8' " This plugin is locked at revision 09c0cea8 | |
NeoBundle 'rstacruz/sparkup', {'rtp': 'vim/'} | |
" vim-scripts repos | |
NeoBundle 'L9' | |
NeoBundle 'FuzzyFinder' | |
NeoBundle 'rails.vim' | |
" Non github repos | |
NeoBundle 'git@github.com:kien/ctrlp.vim.git' | |
" gist repos | |
" NeoBundle 'https://gist.github.com/656148.git', { | |
" \ 'name': 'everything.vim', | |
" \ 'script_type': 'plugin'} | |
" Non git repos | |
NeoBundle 'http://svn.macports.org/repository/macports/contrib/mpvim/' | |
NeoBundle 'https://bitbucket.org/ns9tks/vim-fuzzyfinder' | |
NeoBundle 'https://github.com/scrooloose/nerdtree.git' | |
NeoBundle 'bling/vim-bufferline' | |
" NeoBundle 'git@github.com:Lokaltog/powerline.git' | |
NeoBundle 'https://github.com/Lokaltog/powerline-fonts' | |
NeoBundle 'bling/vim-airline' | |
NeoBundle 'git@github.com:terryma/vim-multiple-cursors.git' | |
" if !exists('g:airline_symbols') | |
" let g:airline_symbols = {} | |
" endif | |
let g:airline_powerline_fonts=1 | |
" let g:airline_left_sep = '»' | |
" let g:airline_left_sep = '▶' | |
" let g:airline_right_sep = '«' | |
" let g:airline_right_sep = '◀' | |
" let g:airline_symbols.linenr = '␊' | |
" let g:airline_symbols.linenr = '' | |
" let g:airline_symbols.linenr = '¶' | |
" let g:airline_symbols.branch = '⎇' | |
" let g:airline_symbols.paste = 'ρ' | |
" let g:airline_symbols.paste = 'Þ' | |
" let g:airline_symbols.paste = '∥' | |
" let g:airline_symbols.whitespace = 'Ξ' | |
" ... | |
filetype plugin indent on " Required! | |
" | |
" Brief help | |
" :NeoBundleList - list configured bundles | |
" :NeoBundleInstall(!) - install(update) bundles | |
" :NeoBundleClean(!) - confirm(or auto-approve) removal of unused bundles | |
" Installation check. | |
NeoBundleCheck |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment