Created
October 10, 2016 06:54
-
-
Save Kadrei/31a6306d1d9f44a8cf10156e20642e9b to your computer and use it in GitHub Desktop.
my .vimrc
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
" | |
" .vimrc | |
" by Benedikt Kusemann | |
" v1.0 @ 10.10.2016 | |
" | |
" CHANGELOG | |
" v1.0 Initial Release | |
" | |
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim "needed for Mac Vundle | |
"set rtp+=%HOME%/vimfiles/bundle/Vundle.vim/ "needed for Windows Vundle | |
" | |
" PLUGINS | |
" | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'VundleVim/Vundle.vim' | |
" AutoComplete | |
Plugin 'valloric/youcompleteme' | |
" Startscreen | |
Plugin 'mhinz/vim-startify' | |
" Numbers | |
Plugin 'myusuf3/numbers.vim' | |
" NerdTree | |
Plugin 'scrooloose/nerdtree' | |
" Tabline | |
Plugin 'bling/vim-airline' | |
" Tagbar | |
Plugin 'majutsushi/tagbar' | |
" Syntax-Theme | |
Plugin 'crusoexia/vim-monokai' | |
" File Finder | |
Plugin 'ctrlpvim/ctrlp.vim' | |
" Surround EVERYTHING | |
Plugin 'tpope/vim-surround' | |
" Git | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'airblade/vim-gitgutter' | |
" Syntax Checking | |
Plugin 'scrooloose/syntastic' | |
" JS | |
Plugin 'pangloss/vim-javascript' | |
" AngularJS | |
Plugin 'burnettk/vim-angular' | |
" Dash | |
Plugin 'rizzatti/dash.vim' | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
" | |
" CONFIGURATION | |
" | |
"gVim | |
set guioptions-=m "remove menu bar | |
set guioptions-=T "remove toolbar | |
set guioptions-=r "remove right-hand scroll bar | |
set guioptions-=L "remove left-hand scroll bar | |
set mouse= "disable mouse | |
" unmap arrowkeys in normal mode | |
noremap <Up> <NOP> | |
noremap <Down> <NOP> | |
noremap <Left> <NOP> | |
noremap <Right> <NOP> | |
" Set Font if gui vim is running | |
if has('gui_running') | |
set guifont=Fira_Code:h10 | |
endif | |
set ignorecase " ignore case in search | |
set smartcase " use smart case search | |
set incsearch " looks ahead while typing search | |
set hlsearch " hl all search matches in buffer | |
nmap <silent> <BS> :nohlsearch<CR> " leave hl of search with backspace | |
set matchpairs+=<:>,=:; " '%' jumps between < & > | |
set backspace=indent,eol,start " allow deletion with backspace everywhere | |
let mapleader = "," | |
filetype plugin indent on " required | |
set listchars=eol:¬,tab:>·,trail:~,extends:>,precedes:<,space:· "show special chars | |
set list | |
set ruler "enable ruler tagline | |
" Syntax Theme | |
syntax on | |
colorscheme monokai | |
set t_Co=256 " vim-monokai now only support 256 colours in terminal. | |
" Highlight JSDOC | |
let g:javascript_plugin_jsdoc = 1 | |
" Numbers | |
let g:numbers_exclude = ['tagbar', 'gundo', 'minibufexpl', 'nerdtree'] | |
nnoremap <F3> :NumbersToggle<CR> | |
nnoremap <F4> :NumbersOnOff<CR> | |
" NERDTree | |
" close vim if the only window left open is a NERDTree | |
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif | |
" ,ne to toggle NERDTree | |
nmap <leader>ne :NERDTree<cr> | |
" ignore Files in NERDTree | |
let NERDTreeIgnore = ['\~$', 'node_modules', 'lib', 'platforms', 'www'] | |
" CtrlP | |
let g:ctrlp_map = '<c-p>' | |
let g:ctrlp_cmd = 'CtrlP' | |
"exclude .gitignore'd Files from CtrlP | |
let g:ctrlp_user_command = ['.git/', 'git --git-dir=%s/.git ls-files -oc --exclude-standard'] | |
" Airbar | |
set laststatus=2 | |
" Tagbar | |
let g:tagbar_ctags_bin='/usr/local/bin/ctags' | |
"Press F8 to Toggle Tagbar | |
nmap <F8> :TagbarToggle<CR> | |
" Dash | |
:nmap <silent> <leader>d <Plug>DashSearch | |
" Syntastic | |
set statusline+=%#warningmsg# | |
set statusline+=%{SyntasticStatuslineFlag()} | |
set statusline+=%* | |
let g:syntastic_html_tidy_exec = 'tidy5' " let us use selfdefinded-, angularjs- and html5-tags | |
let g:syntastic_always_populate_loc_list = 1 | |
let g:syntastic_auto_loc_list = 1 | |
let g:syntastic_check_on_open = 1 | |
let g:syntastic_check_on_wq = 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment