Last active
August 29, 2015 14:07
-
-
Save sangpire/ad2194f8753bb4c26a29 to your computer and use it in GitHub Desktop.
My .vimrc
This file contains hidden or 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 " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required | |
| Plugin 'gmarik/Vundle.vim' | |
| " Tools | |
| Plugin 'ctrlp.vim' | |
| let g:ctrlp_extensions = ['tag', 'buffertag', 'bookmarkdir'] | |
| Plugin 'The-NERD-tree' | |
| Plugin 'ack.vim' | |
| Plugin 'terryma/vim-multiple-cursors' | |
| Plugin 'airblade/vim-gitgutter' | |
| Plugin 'MattesGroeger/vim-bookmarks' | |
| Plugin 'msanders/snipmate.vim' | |
| Plugin 'scrooloose/nerdcommenter' | |
| "Plugin 'airblade/vim-gitgutter' | |
| Plugin 'majutsushi/tagbar' | |
| Plugin 'nathanaelkane/vim-indent-guides' | |
| Plugin 'godlygeek/tabular' | |
| Plugin 'xolox/vim-misc' " _vim-easytags_ dependency | |
| Plugin 'xolox/vim-easytags' | |
| Plugin 'tpope/vim-fugitive' | |
| Plugin 'fholgado/minibufexpl.vim' | |
| Plugin 'Shougo/neocomplete.vim' | |
| "Disable AutoComplPop. | |
| let g:acp_enableAtStartup = 0 | |
| " Use neocomplete. | |
| let g:neocomplete#enable_at_startup = 1 | |
| " Use smartcase. | |
| let g:neocomplete#enable_smart_case = 1 | |
| " Set minimum syntax keyword length. | |
| let g:neocomplete#sources#syntax#min_keyword_length = 0 | |
| "Plugin 'xaviershay/tslime.vim' | |
| " Colorscheme | |
| Plugin 'junegunn/seoul256.vim' | |
| Plugin 'twilight256.vim' | |
| Plugin 'morhetz/gruvbox' | |
| set background=dark " Setting dark mode | |
| let g:gruvbox_italicize_comments = 0 | |
| let g:gruvbox_invert_signs = 1 | |
| " Language | |
| Plugin 'fatih/vim-go' | |
| Plugin 'vim-ruby/vim-ruby' | |
| Plugin 'slim-template/vim-slim' | |
| Plugin 'kchmck/vim-coffee-script' | |
| Plugin 'elzr/vim-json' | |
| let g:vim_json_syntax_conceal = 0 | |
| Plugin 'aklt/plantuml-syntax' | |
| Plugin 'chase/vim-ansible-yaml' | |
| Plugin 'plasticboy/vim-markdown' | |
| Plugin 'tfnico/vim-gradle' | |
| Plugin 'rodjek/vim-puppet' | |
| " All of your Plugins must be added before the following line | |
| call vundle#end() " required | |
| filetype plugin indent on " required | |
| " Enhance command-line completion | |
| set wildmenu | |
| " Optimize for fast terminal connections | |
| "set ttyfast | |
| " Use UTF-8 without BOM | |
| set encoding=utf-8 nobomb | |
| " Allows a way to backspace over indent, eol and start. | |
| set backspace=indent,eol,start | |
| " Don’t add empty newlines at the end of files | |
| set binary | |
| set noeol | |
| " Centralize backups, swapfiles and undo history | |
| set backupdir=~/.vim/backups | |
| set directory=~/.vim/swaps | |
| if exists("&undodir") | |
| set undodir=~/.vim/undo | |
| endif | |
| " Enable syntax highlighting | |
| set term=screen-256color | |
| syntax on | |
| " Highlight current line | |
| set cursorline | |
| " Show “invisible” characters | |
| set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_ | |
| set list | |
| " Highlight searches | |
| set hlsearch | |
| " Highlight dynamically as pattern is typed | |
| set incsearch | |
| " Always show status line | |
| set laststatus=2 | |
| " Enable mouse in all modes | |
| set mouse=a | |
| " Don’t reset cursor to start of line when moving around. | |
| "set nostartofline | |
| " Show the cursor position | |
| "set ruler | |
| " Show the current mode | |
| set showmode | |
| " Show the filename in the window titlebar | |
| set title | |
| " Show the (partial) command as it’s being typed | |
| set showcmd | |
| " Set for gem ctag from 'https://github.com/tpope/gem-ctags' | |
| " autocmd FileType ruby let &l:tags = pathogen#legacyjoin(pathogen#uniq(pathogen#split(&tags)+map(split($GEM_PATH,':'),'v:val."/gems/*/tags"'))) | |
| set omnifunc=syntaxcomplete#Complete | |
| "let mojo_highlight_data = 1 | |
| "for clipboard | |
| set clipboard=unnamed | |
| "Key Mapping | |
| let mapleader = "," | |
| nnoremap <leader>. :CtrlPTag<CR> | |
| nnoremap <leader>d :NERDTreeToggle<CR> | |
| nnoremap <leader>t :TagbarToggle<CR> | |
| nnoremap <leader>< :MBEbp<CR> | |
| nnoremap <leader>> :MBEbn<CR> | |
| "nnoremap <leader>x :bp/|bd #<CR> | |
| inoremap <expr><Tab> neocomplete#start_manual_complete() | |
| " Easy window navigation | |
| map <C-h> <C-w>h | |
| map <C-j> <C-w>j | |
| map <C-k> <C-w>k | |
| map <C-l> <C-w>l | |
| " Make tabs as wide as two spaces | |
| nmap set tabstop=2 | |
| set shiftwidth=2 | |
| set tabstop=4 | |
| set autoindent | |
| set cindent | |
| set expandtab | |
| set nu | |
| au FileType go set shiftwidth=4 | |
| au FileType go set tabstop=4 | |
| colorscheme gruvbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment