18 Дек


Конфиги для vim

Мои конфиги для vim. Дополняется ;) и даа перешел на виртуал вим для вс кода, стало удобнее

set nocompatible              " be iMproved, required
filetype off                  " required
" set t_Co=256
" 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'
" The following are examples of different formats supported.
" Keep Plugin commands between vundle#begin/end.
" plugin on GitHub repo
Plugin 'tpope/vim-fugitive'
" plugin from http://vim-scripts.org/vim/scripts.html
" Plugin 'L9'
" Git plugin not hosted on GitHub
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" Plugin 'git://git.wincent.com/command-t.git'
" git repos on your local machine (i.e. when working on your own plugin)
" The sparkup vim script is in a subdirectory of this repo called vim.
" Pass the path to set the runtimepath properly.
" Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}
" Install L9 and avoid a Naming conflict if you've already installed a
" different version somewhere else.
" Plugin 'ascenator/L9', {'name': 'newL9'}
" Plugin 'sonph/onehalf', {'rtp': 'vim/'}
" Plugin 'dracula/vim', { 'name': 'dracula' }
" All of your Plugins must be added before the following line
" JS prettier
" Plugin 'Valloric/YouCompleteMe', { 'do': './install.py --tern-completer' }
Plugin 'prettier/vim-prettier', { 'do': 'yarn install', 'for': ['javascript', 'typescript', 'css', 'less', 'scss', 'json', 'graphql', 'markdown', 'vue', 'yaml', 'html'] }
let g:prettier#autoformat = 0
autocmd BufWritePre *.js,*.jsx,*.mjs,*.ts,*.tsx,*.css,*.less,*.scss,*.json,*.graphql,*.md,*.vue,*.yaml,*.html PrettierAsync
Plugin 'ternjs/tern_for_vim', { 'do' : 'npm install && npm install -g tern' }
Plugin 'klen/python-mode'

Plugin 'pangloss/vim-javascript'
Plugin 'leafgarland/typescript-vim'
"Plugin 'tasn/vim-tsx'
let g:typescript_compiler_binary = 'tsc'
let g:typescript_compiler_options = ''
autocmd FileType typescript :set makeprg=tsc
let g:typescript_opfirst='\%([<>=,?^%|*/&]\|\([-:+]\)\1\@!\|!=\|in\%(stanceof\)\=\>\)'
Plugin 'maxmellon/vim-jsx-pretty'
Plugin 'sbdchd/neoformat'
Plugin 'tellijo/vim-react-native-snippets'
Plugin 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plugin 'junegunn/fzf.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'burnettk/vim-angular'
Plugin 'posva/vim-vue'
Plugin 'fatih/vim-go'
Plugin 'vim-syntastic/syntastic'
Plugin 'tibabit/vim-templates'
Plugin 'kristijanhusak/vim-hybrid-material'
Plugin 'wincent/command-t'
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = 'npm run lint --'
let g:enable_bold_font = 1
let g:enable_italic_font = 1
let g:hybrid_transparent_background = 1
let g:typescript_indent_disable = 1
autocmd VimEnter * syntax on
autocmd VimEnter * NERDTree
autocmd BufWritePre *.js Neoformat
autocmd BufWritePre *.ts Neoformat
set background=dark
call vundle#end()            " required
filetype plugin indent on    " required
"set omnifunc=syntaxcomplete#Complete
set omnifunc=tern#Complete
colorscheme hybrid_material
" Bundle 'sonph/onehalf', {'rtp': 'vim/'}
" colorscheme onehalflight
" let g:airline_theme:'onehalfdark'
" let g:airline_theme='dracula'
" let g:lightline.colorscheme='onehalfdark'
" 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