text 的.vimrc

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 的.vimrc相关的知识,希望对你有一定的参考价值。

set laststatus=2 " Always display the statusline in all windows
set showtabline=2 " Always display the tabline, even if there is only one tab
set noshowmode " Hide the default mode text (e.g. -- INSERT -- below the statusline)
set t_Co=256
set nocompatible              " be improved, required
filetype off    

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'git://git.wincent.com/command-t.git'
Plugin 'rstacruz/sparkup', {'rtp': 'vim/'}

call vundle#end()            " required
filetype plugin indent on    " required

Plugin 'mattn/emmet-vim'
Plugin 'wakatime/vim-wakatime'
Plugin 'leafgarland/typescript-vim'
Plugin 'prettier/vim-prettier'
Plugin 'w0rp/ale'
Plugin 'posva/vim-vue'
Plugin 'pangloss/vim-javascript'
Plugin 'mxw/vim-jsx'
Plugin 'itchyny/lightline.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
Plugin 'dracula/vim'
Plugin 'kristijanhusak/vim-carbon-now-sh'

set number

filetype plugin indent on
" show existing tab with 2 spaces width
set tabstop=2
" when indenting with '>', use 2 spaces width
set shiftwidth=2
" On pressing tab, insert 2 spaces
set expandtab

try
source ~/.vim_runtime/my_configs.vim
catch
endtry

syntax on
color dracula

let g:ale_linters = {
\   'javascript': ['standard'],
\}
let g:ale_fixers = {'javascript': ['standard']}

let g:ale_lint_on_save = 1
let g:ale_fix_on_save = 1

autocmd FileType javascript set formatprg=prettier\ --stdin

autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | exe 'cd '.argv()[0] | endif

以上是关于text 的.vimrc的主要内容,如果未能解决你的问题,请参考以下文章

text 的.vimrc

text 的.vimrc

text 的.vimrc

text 的vimrc

text 的.vimrc

text 的vimrc