Skip to content
This repository has been archived by the owner on Oct 2, 2024. It is now read-only.

Commit

Permalink
Adicionando o vimrc e o zshrc ao repositório
Browse files Browse the repository at this point in the history
  • Loading branch information
ggteixeira committed Jun 26, 2018
1 parent d3c5c83 commit a739db1
Show file tree
Hide file tree
Showing 2 changed files with 256 additions and 0 deletions.
123 changes: 123 additions & 0 deletions .vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
set nocompatible " be iMproved, required
filetype off " required

set number
" set relativenumber!
set smartindent
set tabstop=4
set shiftwidth=4
set expandtab
syntax on " syntax highlight
set t_Co=256 " set 256 colors
colorscheme industry " set color scheme
set showmatch " shows matching part of bracket pairs (), [], {}
set enc=utf-8 " utf-8 by default
set hlsearch
set syntax=python3
filetype indent plugin on

" 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')

" ==== plugin manager
Plugin 'VundleVim/Vundle.vim'

" ==== Autopair

Plugin 'jiangmiao/auto-pairs'

" ==== File Tree
Plugin 'scrooloose/nerdtree'

" ==== Syntax Helpers
Plugin 'scrooloose/syntastic'

set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0

" ==== Color Schemes for Vim

Plugin 'gosukiwi/vim-atom-dark'

" ==== snippets

" ==== Status bar on bottom (Powerline/Airline)
Plugin 'vim-airline/vim-airline'
Plugin 'vim-airline/vim-airline-themes'
" Plugin 'powerline/powerline'

let g:airline_solarized_bg='dark'
let g:airline_theme='deus'
let g:airline_powerline_fonts = 1

" lints
let g:pymode_lint=0

" ==== * ==== Python ==== * ==== * ====
Plugin 'klen/python-mode'

" Python-Syntax
Plugin 'vim-python/python-syntax'

let g:python_highlight_all = 1
let g:python_highlight_string_formatting = 1
let g:Python3Syntax = 1


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

" =====================================================
"" General settings
" =====================================================

"""""""""""" Start Powerline Settings """"""""""""""""

set guifont=Inconsolata\ for\ Powerline:h15
let g:Powerline_symbols = 'fancy'
set encoding=utf-8
set t_Co=256
set fillchars+=stl:\ ,stlnc:\
set term=xterm-256color
set termencoding=utf-8

if has("gui_running")
let s:uname = system("uname")
if s:uname == "Darwin\n"
set guifont=Source\ Code\ Pro\ for\ Powerline:h15
colorscheme PaperColor " set color scheme
endif
endif

""""""""""" END of PowerLine Settings """""""""""""""

"=====================================================
"" nerdtree settings
"=====================================================
let NERDTreeIgnore=['\.pyc$', '\.pyo$', '__pycache__$'] " Ignore files in NERDTree
let NERDTreeWinSize=40
let NERDTreeMinimalUI = 1
let NERDTreeDirArrows = 1

" # autocmd VimEnter * if !argc() | NERDTree | endif " Load NERDTree only if vim is run without arguments
nmap <C-h> :NERDTreeToggle<CR>
map <C-\> :NERDTreeToggle<CR>
" Atalhos personalizados

nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
133 changes: 133 additions & 0 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
# lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/guiemi/.zshrc'

autoload -Uz compinit
compinit
# End of lines added by compinstall

# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH

# Path to your oh-my-zsh installation.
export ZSH=/home/guiemi/.oh-my-zsh

# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# ZSH_THEME="powerlevel9k/powerlevel9k"
ZSH_THEME="agnoster"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"

# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"

# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"

# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13

# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"

# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"

# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"

# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"

# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"

# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"

# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder

# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.

plugins=(
git zsh-autosuggestions
zsh-256color
)

# Autosuggestions (Manjaro/Arch):
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh

AUTOSUGGESTION_HIGHLIGHT_COLOR='fg=cyan'

source $ZSH/oh-my-zsh.sh

function virtualenv_info {
[ $VIRTUAL_ENV ] && echo '('`basename $VIRTUAL_ENV`') '
}
plugins=(virtualenv)
AGNOSTER_RIGHT_PROMPT_ELEMENTS=(status virtualenv)

# User configuration

# export MANPATH="/usr/local/man:$MANPATH"

# You may need to manually set your language environment
# export LANG=en_US.UTF-8

# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='mvim'
fi

# Compilation flags
# export ARCHFLAGS="-arch x86_64"

# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"

# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# Meus aliases:
alias vimrc='vim ~/.vimrc'
alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles.git/ --work-tree=$HOME"

# POWERLEVEL9k SETTINGS

# source /usr/share/zsh-theme-powerlevel9k/powerlevel9k.zsh-theme
# Mais uma tentativa de colocar o VirtualEnv no ZSH:
export VIRTUAL_ENV_DISABLE_PROMPT=1



0 comments on commit a739db1

Please sign in to comment.