Skip to content

Instantly share code, notes, and snippets.

@SeysT
Last active January 19, 2018 17:24
Show Gist options
  • Save SeysT/0bb4137d6b6fa99132f51a47efabcda1 to your computer and use it in GitHub Desktop.
Save SeysT/0bb4137d6b6fa99132f51a47efabcda1 to your computer and use it in GitHub Desktop.
This is my personnal .vimrc file. See below for setting up different parts.
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()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'avakhov/vim-yaml'
Plugin 'python-mode/python-mode'
Plugin 'vim-scripts/Solarized'
Plugin 'davidhalter/jedi-vim'
Plugin 'ervandew/supertab'
Plugin 'posva/vim-vue'
Plugin 'Quramy/tsuquyomi'
Plugin 'leafgarland/typescript-vim'
Plugin 'Shougo/vimproc.vim'
" 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
" General options
set nu
set nowrap
" Python stuff
let g:pymode_python = 'python3'
let g:pymode_folding = 0
let g:pymode_options_max_line_length = 99
" Completion stuff
let g:SuperTabContextDefaultCompletionType = "<c-n>"
" Javascript stuff
autocmd Filetype javascript setlocal tabstop=2 shiftwidth=2 expandtab
autocmd Filetype typescript setlocal tabstop=2 shiftwidth=2 expandtab
autocmd Filetype html setlocal tabstop=2 shiftwidth=2 expandtab
autocmd Filetype css setlocal tabstop=2 shiftwidth=2 expandtab
autocmd Filetype vue setlocal tabstop=2 shiftwidth=2 expandtab
autocmd BufRead,BufNewFile *.vue setlocal filetype=vue.html.javascript.css
@SeysT
Copy link
Author

SeysT commented Jan 19, 2018

1. First step: Vundle

First step is to setup Vundle:

git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim

Then open vim and run the command :PluginInstall

2. Configure typescript plugin

Second step is to install TypeScript via npm:

npm -g install typescript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment