filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Bundle 'VundleVim/Vundle.vim' " standard vim Bundle 'itchyny/lightline.vim' Bundle 'scrooloose/nerdtree' Bundle 'junegunn/seoul256.vim' Bundle 'jistr/vim-nerdtree-tabs' Bundle 'jiangmiao/auto-pairs' Bundle 'tpope/vim-markdown' Bundle 'suan/vim-instant-markdown' Bundle 'sheerun/vim-polyglot' " lint engine Bundle 'w0rp/ale' " web-dev Bundle 'tpope/vim-commentary' Bundle 'tpope/vim-surround' Bundle 'alvan/vim-closetag' " html " Bundle 'gregsexton/MatchTag' Bundle 'mattn/emmet-vim' call vundle#end() " required filetype plugin indent on " required set list lcs=tab:\▏\ autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.javascript.css autocmd BufEnter *.vue :syntax sync fromstart set ttyfast set lazyredraw syntax enable set number set showcmd set shiftwidth=2 set tabstop=2 set laststatus=2 set iskeyword+=- set backspace=indent,eol,start set nobackup set nowritebackup set noswapfile set hidden set autoread " search settings set ignorecase set smartcase set incsearch set showmatch set hlsearch set gdefault set virtualedit+=block set splitbelow set splitright set pastetoggle=m set showmode setlocal indentkeys+=0 let g:seoul256_background = 235 colo seoul256 nnoremap / /\v vnoremap / /\v let mapleader = "," map \ :NERDTreeToggle map y :%y+ " toggle linenumbers map n :exec &nu==&rnu? "se nu!" : "se rnu!" " spellcheck map t :set spell! " toggle ale linter map q :ALEToggle " delete resulting tag side-effect imap z ldf>a " set cc + toggle colorcolumn set cc=80 nnoremap w :let &cc = &cc == '' ? '81' : '' " create new vsplit, and switch to it. noremap v v " for easy split nav nnoremap h nnoremap j nnoremap k nnoremap l " clear match highlighting noremap :noh:call clearmatches() " last buffer switch nnoremap noremap j gj noremap k gk " paste settings nnoremap m :set invpaste paste? let g:lightline = { \ 'colorscheme': 'seoul256', \ } let g:ale_lint_delay = 100 let g:ale_sign_column_always = 1 let g:vue_disable_pre_processors=1 let g:AutoPairsMultilineClose = 0 let g:markdown_syntax_conceal = 0 let g:vim_json_syntax_conceal = 0 let g:closetag_filenames = '*.html,*.xhtml,*.phtml, *.vue' let NERDTreeShowHidden=1