Skip to content

Instantly share code, notes, and snippets.

@twkang
Last active March 25, 2018 01:53
Show Gist options
  • Save twkang/11312049 to your computer and use it in GitHub Desktop.
Save twkang/11312049 to your computer and use it in GitHub Desktop.
personal vimrc file
" git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
if has('win32')
language English_United States
endif
set langmenu=en_US.UTF-8
set encoding=utf-8
set nocompatible
filetype off
if has('win32')
"set rtp+=~/vimfiles/bundle/Vundle.vim
"let path='~/vimfiles/bundle'
"call vundle#begin(path)
set rtp+=c:/Tools/vimfiles/bundle/Vundle.vim
let path='c:/Tools/vimfiles/bundle'
call vundle#begin('c:/Tools/vimfiles/bundle')
else
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
endif
Plugin 'gmarik/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'kien/ctrlp.vim'
Plugin 'ervandew/supertab'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'mhinz/vim-startify'
Plugin 'chriskempson/base16-vim'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
Plugin 'klen/python-mode'
Plugin 'mattn/emmet-vim'
Plugin 'rust-lang/rust.vim'
Plugin 'vim-syntastic/syntastic'
call vundle#end()
filetype plugin indent on
set hidden confirm
set et ts=4 sw=4 sts=4
set backspace=indent,eol,start
set nobackup noswapfile
set ruler number
set incsearch hlsearch ignorecase smartcase
set showmatch autoindent smartindent
set laststatus=2
set noshowmode "use airline
autocmd filetype make setlocal noexpandtab ts=8 sw=8 sts=8
autocmd filetype html,xml,coffee,javascript setlocal ts=2 sw=2 sts=2
syntax enable
if has('gui_running') && has('win32')
set columns=154 lines=46
set guifont=Ubuntu_Mono:h11:cANSI
set background=dark
set linespace=0
colorscheme base16-ocean
let g:airline_theme = 'base16'
elseif has('gui_running')
set columns=132 lines=40
set guifont=Ubuntu\ Mono\ derivative\ Powerline\ 12
set background=light
colorscheme base16-solarized
let g:airline_theme = 'base16'
elseif has('win32')
set t_Co=16
let base16colorspace=16
set background=dark
colorscheme darkblue
let g:airline_theme = 'base16'
else
set t_Co=256
set t_ut=
let base16colorspace=256
set background=dark
colorscheme darkblue
let g:airline_theme = 'badwolf'
endif
set wildignore+=*/tmp/*,*.so,*.gz,*.tar,*.swp,*.pyc,*.bak,*.class,*.zip,*.exe
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$\|node_modules\|__pycache__\|\.ropeproject\|build',
\ 'file': '\.pyc$\|\.pyo$\|\.rbc$|\.rbo$\|\.class$\|\.o$\|\~$\|\.DS_Store',
\ 'link': 'some_bad_symbolic_links',
\ }
set completeopt-=preview
"let mapleader = ","
let g:airline_powerline_fonts = 0
let g:airline_left_sep = ''
let g:airline_right_sep = ''
let g:airline_linecolumn_prefix = ''
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:pymode_indent = 1
let g:pymode_folding = 0
let g:pymode_rope_completion = 1
let g:pymode_rope_complete_on_dot = 0
let g:pymode_doc = 1
let g:pymode_doc_key = 'K'
let g:pymode_lint = 1
let g:pymode_lint_checker = "pyflakes,pep8"
let g:pymode_lint_write = 1
let g:pymode_virtualenv = 1
let g:pymode_syntax = 1
let g:pymode_syntax_all = 1
let g:pymode_syntax_indent_errors = g:pymode_syntax_all
let g:pymode_syntax_space_errors = g:pymode_syntax_all
let g:syntastic_python_checkers = ['pylint']
let g:syntastic_rust_checkers = ['rustc']
let g:SuperTabDefaultCompletionType = "context"
let g:NERDSpaceDelims = 1
let g:NERDTreeChDirMode = 2
map <Leader>t :NERDTreeToggle<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment