text 的vimrc

Posted

tags:

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

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 'othree/javascript-libraries-syntax.vim'
Plugin 'posva/vim-vue'
Plugin 'luochen1990/rainbow'
Plugin 'tpope/vim-commentary'

let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

"  Set colorscheme and his variation
colorscheme gruvbox
set bg=dark
" Set number line
set number
" Tab as spaces an 2 spaces
set shiftwidth=2 softtabstop=2 expandtab
" map %:h to %%
cnoremap <expr> %% getcmdtype() == ':' ? expand('%:h').'/' : '%%'

" Let use find ex command set all searchh in all subdirectories inside of root
" directory
set path=**

" Set higlight over matched words after searchs
set hls 

" Remap the Caps Lock Key to Scape
41 au VimEnter * silent !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape'
42 au VimLeave * silent !xmodmap -e 'clear Lock' -e 'keycode 0x42 = Caps_Lock'

" Set Commands History to 200 records
set history=200

" Set file or buffer title on the terminal bar
set title
" Show file status at the bottom bar
set laststatus=2

" Set leader key to , instead of \
let mapleader = ','

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

text 的.vimrc

text 的.vimrc

text 的.vimrc

text 的vimrc

text 的.vimrc

text 的vimrc