mirror of
https://github.com/frebib/dotfiles.git
synced 2024-06-14 12:57:23 +00:00
36 lines
739 B
VimL
36 lines
739 B
VimL
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()
|
|
|
|
Plugin 'VundleVim/Vundle.vim'
|
|
Plugin 'Valloric/YouCompleteMe'
|
|
Plugin 'vim-airline/vim-airline'
|
|
Plugin 'vim-airline/vim-airline-themes'
|
|
|
|
call vundle#end()
|
|
|
|
syntax enable
|
|
set tabstop=4
|
|
set shiftwidth=4
|
|
set softtabstop=4
|
|
set expandtab
|
|
set number
|
|
set autoindent
|
|
set laststatus=2
|
|
set mouse=a
|
|
|
|
" Interface with system clipboard
|
|
noremap <Leader>y "*y
|
|
noremap <Leader>p "*p
|
|
noremap <Leader>Y "+y
|
|
noremap <Leader>P "+p
|
|
|
|
" Write with sudo
|
|
cmap w!! w !sudo tee > /dev/null %
|
|
|
|
" airline buffer list
|
|
let g:airline#extensions#tabline#enabled = 1
|