Skip to content

Instantly share code, notes, and snippets.

@simbafs
Last active November 14, 2019 15:37
Show Gist options
  • Save simbafs/2971e4f5e47ad9bfc60935022b64712b to your computer and use it in GitHub Desktop.
Save simbafs/2971e4f5e47ad9bfc60935022b64712b to your computer and use it in GitHub Desktop.
syntax on
set showcmd
" blue default desert evening koehler murphy peachpuff ron slate zellner
" darkblue delek elflord industry morning pablo README.txt shine torte javascript
colorscheme koehler
set nu
set tabstop=4
set shiftwidth=4
set autoindent
set nowrap
so ~/.vim/plugin.vim
"au VimEnter * NERDTree
" set fileencodings=utf8,big5,gbk,latin1
" set fileencoding=big5
" set <C-u>=^U
" set <C-b>=^B
" map <C-u> :set fileencoding=utf8
" map <C-b> :set fileencoding=big5
"YouCompleteMe
"let g:ycm_global_ycm_extra_conf = '~/the path/to/your/.ycm_extra_conf.py'
" Start autocompletion after 4 chars
let g:ycm_min_num_of_chars_for_completion = 4
let g:ycm_min_num_identifier_candidate_chars = 4
let g:ycm_enable_diagnostic_highlighting = 0
" Don't show YCM's preview window [ I find it really annoying ]
set completeopt-=preview
let g:ycm_add_preview_to_completeopt = 0
"make lightline work in single screen
set laststatus=2
"set up for othree/javascript-libraries-syntax.vim
let g:used_javascript_libs = 'jquery, angularjs, angularui, angularuirouter'
call plug#begin('~/.vim/plugged')
"Plug 'airblade/vim-gitgutter'
"Plug 'editorconfig/editorconfig-vim'
Plug 'itchyny/lightline.vim'
"Plug 'junegunn/fzf'
"Plug 'junegunn/fzf.vim'
Plug 'mattn/emmet-vim'
Plug 'scrooloose/nerdtree'
"Plug 'terryma/vim-multiple-cursors'
"Plug 'tpope/vim-eunuch'
"Plug 'tpope/vim-surround'
"Plug 'w0rp/ale'
"Plug 'Valloric/YouCompleteMe'
"Plug 'marijnh/tern_for_vim', {'for': 'javascript'}
Plug 'Valloric/YouCompleteMe', { 'do': './install.py --tern-completer' }
Plug 'pangloss/vim-javascript'
Plug 'othree/javascript-libraries-syntax.vim'
"Plug 'vim-syntastic/syntastic'
call plug#end()
"autocmd FileType javascript setlocal omnifunc=tern#Complete
"set completeopt-=preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment