Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
92 lines (75 sloc) 2.39 KB
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()
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'flazz/vim-colorschemes'
Plugin 'ctrlpvim/ctrlp.vim'
Plugin 'jiangmiao/auto-pairs'
Plugin 'tpope/vim-surround'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" language support
Plugin 'plasticboy/vim-markdown'
Plugin 'pangloss/vim-javascript'
Plugin 'posva/vim-vue'
Plugin 'mxw/vim-jsx'
Plugin 'tpope/vim-rails'
Plugin 'vim-ruby/vim-ruby'
" typescript plugins
Plugin 'leafgarland/typescript-vim'
Plugin 'Quramy/tsuquyomi'
" Plugin 'tpope/vim-fugitive'
" Plugin 'git://'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
let mapleader = ','
" To improve vim-airline performance
let g:airline_extensions = ['wordcount']
set number " Enable line numbers
syntax on " Enable syntax highlighting
set cursorline
" Show “invisible” characters
" set lcs=tab:▸\ ,trail:·,eol:¬,nbsp:_
" set list
set hlsearch " Highlight searches
set ignorecase " Ignore case of searches
set smartcase
" Make tabs as wide as two spaces and convert to spaces
set tabstop=2
set shiftwidth=2
set expandtab
set bs=2
" Markdown options
autocmd FileType markdown set textwidth=79
autocmd FileType markdown set nofoldenable
let g:vim_markdown_frontmatter = 1
"Typescript options
let g:tsuquyomi_completion_detail = 1
" let g:tsuquyomi_disable_quickfix = 1 " Because it slowed down saving a big project
autocmd FileType typescript nmap <buffer> <Leader>t : <C-u>echo tsuquyomi#hint()<CR>
colorscheme molokai
set colorcolumn=80
set nowrap
set nojoinspaces
" Using the system clipboard as the default register
set clipboard=unnamed
" Putting all swapfiles into a single directory
set directory^=$HOME/.vim/tmp//
" emacs navigation in insert mode
inoremap <C-e> <esc>$a
inoremap <C-a> <esc>0i
" inoremap <C-u> <esc>ld0i
" inoremap <C-k> <C-o>D
" ignore files not tracked in git for ctrl-p
let g:ctrlp_user_command = {
\ 'types': {
\ 1: ['.git', 'cd %s && git ls-files --cached --exclude-standard --others'],
\ 2: ['.hg', 'hg --cwd %s locate -I .'],
\ },
\ 'fallback': 'find %s -type f'
\ }
You can’t perform that action at this time.