1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00
dotfiles/.vimrc

53 lines
1.1 KiB
VimL

set nocompatible " be iMproved, required
filetype off " required
syntax enable
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set number
set autoindent
set laststatus=2
set mouse=a
set encoding=utf-8
set background=dark
set guifont=Sauce\ Code\ Pro\ 10.6
" 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 'ryanoasis/vim-devicons'
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
call vundle#end()
" YouCompleteMe python fix
let g:ycm_server_python_interpreter = '/usr/bin/python3'
" Vim-Airline config
let g:Powerline_symbols = 'fancy'
let g:airline_powerline_fonts = 1
let g:airline_theme='solarized'
" Interface with system clipboard
noremap <Leader>y "*y
noremap <Leader>p "*p
noremap <Leader>Y "+y
noremap <Leader>P "+p
com W w
com Q q
com Wq wq
com WQ wq
" Write with sudo
cmap w!! w !sudo tee > /dev/null %
" airline buffer list
let g:airline#extensions#tabline#enabled = 1