68 lines
1.6 KiB
VimL
68 lines
1.6 KiB
VimL
|
set nohlsearch
|
||
|
set relativenumber
|
||
|
set nocompatible
|
||
|
set smartindent
|
||
|
filetype plugin on
|
||
|
syntax on
|
||
|
vmap <C-c> "+yi
|
||
|
vmap <C-x> "+c
|
||
|
vmap <C-v> c<ESC>"+p
|
||
|
imap <C-v> <C-r><C-o>+
|
||
|
|
||
|
let g:NERDTreeWinPos = "left"
|
||
|
set tabstop=4
|
||
|
set backspace=indent,eol,start
|
||
|
|
||
|
command WQ wq
|
||
|
command Wq wq
|
||
|
command W w
|
||
|
command Q q
|
||
|
|
||
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||
|
call vundle#begin()
|
||
|
Plugin 'itchyny/lightline.vim'
|
||
|
Plugin 'itchyny/vim-gitbranch'
|
||
|
Plugin 'VundleVim/Vundle.vim'
|
||
|
Plugin 'dracula/vim'
|
||
|
call vundle#end()
|
||
|
|
||
|
color dracula
|
||
|
|
||
|
""" =====> Lightline
|
||
|
set laststatus=2
|
||
|
let g:lightline = {
|
||
|
\ 'colorscheme': 'one',
|
||
|
\ 'active': {
|
||
|
\ 'left': [ ['mode','paste'],
|
||
|
\ ['gitbranch', 'readonly', 'filename', 'modified'] ]
|
||
|
\ },
|
||
|
\ 'component_function': {
|
||
|
\ 'gitbranch': 'fugitive#head'
|
||
|
\ },
|
||
|
\}
|
||
|
|
||
|
let g:lightline = {
|
||
|
\ 'colorscheme': 'one',
|
||
|
\ 'active': {
|
||
|
\ 'left': [ ['mode', 'paste'],
|
||
|
\ ['fugitive', 'readonly', 'filename', 'modified'] ],
|
||
|
\ 'right': [ [ 'lineinfo' ], ['percent'] ]
|
||
|
\ },
|
||
|
\ 'component': {
|
||
|
\ 'readonly': '%{&filetype=="help"?"":&readonly?"🔒":""}',
|
||
|
\ 'modified': '%{&filetype=="help"?"":&modified?"+":&modifiable?"":"-"}',
|
||
|
\ 'fugitive': '%{exists("*fugitive#head")?fugitive#head():""}'
|
||
|
\ },
|
||
|
\ 'component_visible_condition': {
|
||
|
\ 'readonly': '(&filetype!="help"&& &readonly)',
|
||
|
\ 'modified': '(&filetype!="help"&&(&modified||!&modifiable))',
|
||
|
\ 'fugitive': '(exists("*fugitive#head") && ""!=fugitive#head())'
|
||
|
\ },
|
||
|
\ 'separator': { 'left': ' ', 'right': ' ' },
|
||
|
\ 'subseparator': { 'left': ' ', 'right': ' ' }
|
||
|
\ }
|
||
|
|
||
|
if !has('gui_running')
|
||
|
set t_Co=256
|
||
|
endif
|