123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138 |
- 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=<leader>m
- set showmode
-
- setlocal indentkeys+=0
-
- let g:seoul256_background = 235
- colo seoul256
-
- nnoremap / /\v
- vnoremap / /\v
-
- let mapleader = ","
-
- map <leader>\ :NERDTreeToggle<CR>
-
- map <leader>y :%y+<CR>
-
- " toggle linenumbers
- map <leader>n :exec &nu==&rnu? "se nu!" : "se rnu!"<CR>
-
- " spellcheck
- map <leader>t :set spell!<CR>
-
- " toggle ale linter
- map <leader>q :ALEToggle<cr>
-
- " delete resulting tag side-effect
- imap <leader>z <ESC>ldf>a
-
- " set cc + toggle colorcolumn
- set cc=80
- nnoremap <leader>w :let &cc = &cc == '' ? '81' : ''<CR>
-
- " create new vsplit, and switch to it.
- noremap <leader>v <C-w>v
-
- " for easy split nav
- nnoremap <C-h> <C-w>h
- nnoremap <C-j> <C-w>j
- nnoremap <C-k> <C-w>k
- nnoremap <C-l> <C-w>l
-
- " clear match highlighting
- noremap <leader><space> :noh<cr>:call clearmatches()<cr>
-
- " last buffer switch
- nnoremap <leader><leader> <c-^>
-
- noremap j gj
- noremap k gk
-
- " paste settings
- nnoremap <leader>m :set invpaste paste?<CR>
-
- 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
|