From 250ee4df578d86068d3ac069cec3fb2cad0af427 Mon Sep 17 00:00:00 2001 From: Florrie Date: Mon, 28 May 2018 20:44:01 -0300 Subject: woop woop --- .vimrc | 107 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 .vimrc (limited to '.vimrc') diff --git a/.vimrc b/.vimrc new file mode 100644 index 0000000..867eebf --- /dev/null +++ b/.vimrc @@ -0,0 +1,107 @@ +" vim-sublime - A minimal Sublime Text - like vim experience bundle +" http://github.com/grigio/vim-sublime +" Best view with a 256 color terminal and Powerline fonts +" Updated by Dorian Neto (https://github.com/dorianneto)" + +set nocompatible + +execute pathogen#infect() + +filetype off +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() +Plugin 'VundleVim/Vundle.vim' +Plugin 'vim-airline/vim-airline' +Plugin 'vim-airline/vim-airline-themes' +Plugin 'airblade/vim-gitgutter' +Plugin 'chrisbra/NrrwRgn' +Plugin 'colors' +call vundle#end() +filetype plugin indent on + +set background=dark +colorscheme molokai +let g:airline_theme='badwolf' +syntax on + +" Use :help 'option' to see the documentation for the given option. +set autoindent +set backspace=indent,eol,start +set showmatch +set showmode +set smarttab +set shiftround +set ttimeout +set ttimeoutlen=50 +set nois +set laststatus=2 +set ruler +set showcmd +set wildmenu +set autoread +set encoding=utf-8 +set tabstop=2 shiftwidth=2 expandtab +set listchars=tab:▒░,trail:▓ +set list +set number +set hlsearch +set ignorecase +set smartcase + +if has('mouse') + set mouse=a +endif + +set hidden +set nobackup +set nowritebackup +set noswapfile +set fileformats=unix,dos,mac +set completeopt=longest + +" +" Plugins config +" + +" NERDTree +nnoremap :NERDTreeToggle + +" vim-airline +let g:airline#extensions#tabline#enabled = 1 +let g:airline_powerline_fonts = 1 + +" +" Basic shortcuts definitions +" most in visual mode / selection (v or ⇧ v) +" + +" Find +map / +" indent / deindent after selecting the text with (⇧ v), (.) to repeat. +vnoremap > +vnoremap < +" Text wrap simpler, then type the open tag or '," +vmap S +" Tabs +let g:airline#extensions#tabline#enabled = 1 +nnoremap :tabprevious +inoremap :tabpreviousi +nnoremap :tabnext +inoremap :tabnexti +nnoremap :tabnew +inoremap :tabnewi + +set ttymouse=xterm2 +set mouse=a +set encoding=utf-8 +nnoremap :let _s=@/:%s/\s\+$//e:let @/=_s +inoremap :w +nnoremap :w +command! -range=% Paste ,!tee /tmp/paste /dev/stdout; curl -s --data-binary @/tmp/paste https://paste.safe.moe/documents | sed -r 's$.*".*".*"(.*)".*$https://paste.safe.moe/raw/\1$g' | xclip -sel clip + + +" AAAAAAAAAAAAAAAAAA todo highlighting +highlight TodoDone ctermfg=13 +highlight TodoNotDone ctermfg=15 +highlight TodoStringDone ctermfg=3 +highlight TodoStringNotDone ctermfg=2 cterm=bold -- cgit 1.3.0-6-gf8a5