Created
October 1, 2018 04:42
-
-
Save coderek/58c3051d706ab50ebe870dc1d5b28251 to your computer and use it in GitHub Desktop.
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 " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim/ | |
let path='~/vimfiles/bundle' | |
call vundle#begin(path) | |
" alternatively, pass a path where Vundle should install plugins | |
"call vundle#begin('~/some/path/here') | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'scrooloose/syntastic' | |
" Plugin 'amitdev/vimpy' | |
Plugin 'xolox/vim-misc' | |
Plugin 'pangloss/vim-javascript' | |
Plugin 'scrooloose/nerdtree' | |
Plugin 'ctrlpvim/ctrlp.vim' | |
Plugin 'mattn/emmet-vim' | |
" Plugin 'godlygeek/tabular' | |
Plugin 'terryma/vim-multiple-cursors' " Plugin 'junegunn/vim-easy-align' | |
" Plugin 'MarcWeber/vim-addon-mw-utils' | |
Plugin 'tomtom/tlib_vim' | |
Plugin 'tpope/vim-fugitive' | |
Plugin 'SirVer/ultisnips' | |
Plugin 'altercation/vim-colors-solarized' | |
Plugin 'tpope/vim-surround' | |
Plugin 'bling/vim-airline' | |
Plugin 'vim-airline/vim-airline-themes' | |
" Plugin 'tpope/vim-repeat' | |
" Plugin 'elzr/vim-json' | |
" Plugin 'justincampbell/vim-railscasts' | |
Plugin 'rakr/vim-one' | |
" Plugin 'Glench/Vim-Jinja2-Syntax' | |
" Plugin 'vim-scripts/python.vim' | |
" Plugin 'kchmck/vim-coffee-script' | |
" Plugin 'jdkanani/vim-material-theme' | |
Plugin 'mileszs/ack.vim' | |
" Plugin 'groenewege/vim-less' | |
" Plugin 'SirVer/ultisnips' | |
" Plugin 'NLKNguyen/papercolor-theme' | |
" Plugin 'leafgarland/typescript-vim' | |
Plugin 'honza/vim-snippets' | |
Plugin 'editorconfig/editorconfig-vim' | |
" Plugin 'jistr/vim-nerdtree-tabs' | |
Plugin 'gosukiwi/vim-atom-dark' | |
Plugin 'tpope/vim-commentary' | |
" Plugin 'tpope/vim-haml' | |
" Plugin 'posva/vim-vue' " slow | |
" Plugin 'slim-template/vim-slim' | |
Plugin 'moll/vim-bbye' | |
Plugin 'airblade/vim-gitgutter' | |
" Plugin 'dart-lang/dart-vim-plugin' | |
Plugin 'shmup/vim-sql-syntax' | |
" Plugin 'jparise/vim-graphql' | |
" Remove ALL autocommands for current group | |
autocmd! | |
" All of your Plugins must be added before the following line | |
call vundle#end() " required | |
filetype plugin indent on " required | |
" To ignore plugin indent changes, instead use: | |
"filetype plugin on | |
" | |
" Brief help | |
" :PluginList - lists configured plugins | |
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate | |
" :PluginSearch foo - searches for foo; append `!` to refresh local cache | |
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal | |
" | |
" see :h vundle for more details or wiki for FAQ | |
" Put your non-Plugin stuff after this line | |
" cd $HOME/Dev | |
syntax enable | |
set number | |
set history=700 | |
" With a map leader it's possible to do extra key combinations | |
" like <leader>w saves the current file | |
let mapleader = "," | |
let g:mapleader = "," | |
" Fast saving | |
nmap <leader>w :w!<cr> | |
"Always show current position | |
set ruler | |
" Height of the command bar | |
set cmdheight=2 | |
" A buffer becomes hidden when it is abandoned | |
set hid | |
" Configure backspace so it acts as it should act | |
set backspace=eol,start,indent | |
set whichwrap+=<,>,h,l | |
" In many terminal emulators the mouse works just fine, thus enable it. | |
if has('mouse') | |
set mouse=a | |
endif | |
" Ignore case when searching | |
set ignorecase | |
" When searching try to be smart about cases | |
set smartcase | |
" Highlight search results | |
set hlsearch | |
" Makes search act like search in modern browsers | |
set incsearch | |
" Don't redraw while executing macros (good performance config) | |
set lazyredraw | |
" For regular expressions turn magic on | |
set magic | |
" Show matching brackets when text indicator is over them | |
set showmatch | |
" How many tenths of a second to blink when matching brackets | |
set mat=2 | |
" No annoying sound on errors | |
set noerrorbells | |
set novisualbell | |
set t_vb= | |
set tm=500 | |
set list | |
set listchars=tab:>-,trail:- | |
" Add a bit extra margin to the left | |
set foldcolumn=1 | |
set encoding=utf8 | |
" Use Unix as the standard file type | |
set ffs=unix,dos,mac | |
set noeol | |
set nobackup | |
set nowb | |
set noswapfile | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" => Text, tab and indent related | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" Use spaces instead of tabs | |
set expandtab | |
" Be smart when using tabs ;) | |
set smarttab | |
" 1 tab == 4 spaces | |
set shiftwidth=2 | |
set tabstop=2 | |
" Linebreak on 500 characters | |
set nolbr | |
set textwidth=0 | |
set wrapmargin=0 | |
set ai "Auto indent | |
set smartindent " No Smart indent | |
" \*/src, | |
set wildignore+=*/.git/*,*/.hg/*,*/.svn/*, | |
\*/dashboard/static, | |
\*/my_django/static, | |
\*/tmp/*, | |
\*.pyc,*.log, | |
\*.less.css, | |
\*.class, | |
\*_jst.js, | |
\*-templates.js, | |
\*/__pycache__, | |
\*.pg_dump, | |
\*/.frontend_tests, | |
\*/coverage, | |
\*/public, | |
\*/target, | |
\*/node_modules | |
let g:ctrlp_custom_ignore = 'node_modules\|build\|dist\|tmp' | |
let g:vim_markdown_folding_disabled=1 | |
autocmd FileType html,css,jsx,jinja EmmetInstall | |
" Start interactive EasyAlign in visual mode (e.g. vip<Enter>) | |
xmap ga <Plug>(EasyAlign) | |
" Start interactive EasyAlign for a motion/text object (e.g. gaip) | |
nmap ga <Plug>(EasyAlign) | |
" indent json files on save | |
" autocmd BufWritePre *.json %!python -m json.tool | |
set diffopt=vertical | |
set cursorline | |
set colorcolumn=100 | |
let NERDTreeIgnore=[] | |
let NERDTreeShowBookmarks = 1 | |
let NERDTreeRespectWildIgnore = 1 | |
let NERDTreeChDirMode = 2 | |
let g:ctrlp_open_new_file = 'v' | |
let g:ctrlp_match_window = 'bottom,order:btt,min:1,max:10,results:10' | |
let g:ctrlp_max_depth = 10 | |
let g:ctrlp_working_path_mode = 0 | |
set nowrap | |
nnoremap <Leader>cd :cd %:p:h<CR> | |
let g:easy_align_delimiters = { | |
\ '<': { 'pattern': '<-' }, | |
\ '"': { 'pattern': '"' }, | |
\ } | |
set foldmethod=indent | |
set foldlevel=99 | |
vnoremap // y/<C-R>"<CR> | |
nnoremap <Leader><Leader> :vsplit $MYVIMRC<cr> | |
set splitright | |
set splitbelow | |
nnoremap <Leader>q :Bdelete<CR> | |
nnoremap <Leader>qa :bufdo :Bdelete<CR> | |
set statusline+=%#warningmsg# | |
set statusline+=%* | |
" nnoremap <Leader>c :SyntasticCheck flake8<CR> | |
set statusline+=%{SyntasticStatuslineFlag()} | |
" let g:syntastic_html_tidy_blocklevel_tags = ['paper-toolbar', 'paper-icon-button', 'paper-menu-button', 'paper-menu', 'paper-item', 'paper-drawer-panel', 'paper-header-panel', 'dom-module'] | |
" let g:syntastic_html_tidy_ignore_errors=[" proprietary attribute "] | |
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 = 1 | |
let g:syntastic_mode_map = { | |
\ "mode": "passive", | |
\ "active_filetypes": [], | |
\ "passive_filetypes": ["java"] } | |
" let g:syntastic_ignore_files = ['\m^/usr/include/', '\m\c\.h$', 'interview/src/py'] | |
" let g:syntastic_python_checkers = ['flake8'] | |
let g:syntastic_javascript_checkers = ['eslint'] | |
let g:syntastic_error_symbol = "✗" | |
let g:syntastic_warning_symbol = "⚠" | |
" let syntastic_python_flake8_exec = "/Users/coderek/Documents/projects/py3/bin/flake8" | |
let syntastic_javascript_eslint_exec = getcwd() . "/node_modules/.bin/eslint" | |
" autocmd BufReadPre **/migrations/** SyntasticReset | |
let g:javascript_enable_domhtmlcss = 1 | |
" search word under cursor without jumping to next | |
nnoremap * *##* | |
function! EditDotFile() | |
let file_name=$HOME . '/.' . input('Edit .') | |
exe 'edit' file_name | |
endfunction | |
nnoremap <leader>nc :NERDTreeClose<CR> | |
nnoremap <leader>nl :nohlsearch<CR> | |
nnoremap <leader>. :call EditDotFile()<CR> | |
" Put underline for searched terms | |
highlight Search cterm=underline gui=underline | |
autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 | |
autocmd FileType htmldjango setlocal foldmethod=indent filetype=javascript | |
autocmd FileType python setlocal foldmethod=indent cindent nosmartindent | |
autocmd FileType coffee setlocal tabstop=2 shiftwidth=2 | |
let g:signify_vcs_list = [ 'git' ] | |
let g:ackhighlight = 1 | |
" set guifont=Hack:h14 | |
set guifont=Source\ Code\ Pro\ light:h14 | |
set t_Co=256 " This is may or may not needed. | |
if has("gui_running") | |
exe "colorscheme atom-dark" | |
else | |
exe "colorscheme one" | |
endif | |
set makeprg="gradle test" | |
let g:UltiSnipsSnippetsDir="~/.vim/after/UltiSnips" | |
set clipboard+=unnamed | |
set nolist | |
" ctrl slash | |
noremap <C-_> :call Comment()<CR> | |
au BufRead *.md setlocal nonu wrap textwidth=80 | |
" au BufRead *.ts setlocal shiftwidth=2 tabstop=2 | |
set foldcolumn=0 | |
map <Leader>ddd :bufdo bdelete<CR> | |
set isfname+=@-@ " for angular | |
let s:NpmRegistry = {} | |
let s:PyPathSet = 0 | |
" set suffixesadd=.java,.ts,.py,.js,.d.ts | |
map <A-Left> :tabprevious<CR> | |
map <A-Right> :tabnext<CR> | |
set laststatus=2 " always show status | |
set guitablabel=%t | |
set shell=/bin/bash\ --login | |
set autoread | |
set backupcopy=yes | |
set guioptions= | |
let g:vue_disable_pre_processors=1 | |
let g:ackprg = "ag --vimgrep" | |
hi ColorColumn NONE | |
" set includeexpr=substitute(v:fname,'@app/\\(.*\\)','\\1','') | |
" set path+=node_modules;~/Code,app;~/Code |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment