Fiz exatamente o que vc sugere para mudança no tema, porém, continua o tema industry. Sabe o que pode ter ocorrido?
Fiz exatamente o que vc sugere para mudança no tema, porém, continua o tema industry. Sabe o que pode ter ocorrido?
Voce editou e salvou seu .vimrc?
Tenta postar o .vimrc aqui no forum para analisarmos.
" tentei madar uma imagens, mas não consigo por aqui.
1 execute pathogen#infect() 1 2 "colorscheme dracula 3 colorscheme Tomorrow-Night-Eighties 4 5 " tamanho da indentacao 6 set tabstop=2 7 8 " indentacao do tipo de arquivo 9 filetype plugin indent on 10 11 " colorir o editor 12 syntax on 13 14 " deixar coerente a indentacao com o tamanho do TAB 15 set shiftwidth=2 16 17 " coportamento usual do backspace 18 set backspace=2 19 20 " este comando serve para numerar as linhas 21 set number 22 23 " fazer o calculo da distancia das linhas 24 set relativenumber 25 26 " busca incrementada - feedback enquanto busco 27 set incsearch 28 29 " destaque dos resultados 30 set hlsearch ~~
Ficou bem ruim de ler, mas parece tudo certo por aqui
Quando for postar algum codigo clique em Inserir Codigo que fica acima da caixa de inserção de texto.
Cara posta o ls -la da sua pasta .vim e .vim/colors
Parece ser algo por ai, pq o script ta certo.
Uma dúvida quando vc habilitar a função color no .bashrc da minha home e também root. Será que isso está interfirindo colorsheme?
areis@crypto:~$ ls -la .vim
total 20
drwxr-xr-x 5 areis areis 4096 Aug 14 20:32 .
drwxr-xr-x 36 areis areis 4096 Aug 15 21:15 ..
drwxr-xr-x 2 areis areis 4096 Aug 14 17:52 autoload
drwxr-xr-x 9 areis areis 4096 Aug 14 22:30 bundle
drwxr-xr-x 2 areis areis 4096 Aug 15 20:46 colors
-rw-r--r-- 1 areis areis 554 Aug 15 20:53 .vimrc
1 execute pathogen#infect()
1
2 "colorscheme dracula
3 colorscheme Tomorrow-Night-Eighties
4
5 " tamanho da indentacao
6 set tabstop=2
7
8 " indentacao do tipo de arquivo
9 filetype plugin indent on
10
11 " colorir o editor
12 syntax on
13
14 " deixar coerente a indentacao com o tamanho do TAB
15 set shiftwidth=2
16
17 " coportamento usual do backspace
18 set backspace=2
19
20 " este comando serve para numerar as linhas
21 set number
22
23 " fazer o calculo da distancia das linhas
24 set relativenumber
25
26 " busca incrementada - feedback enquanto busco
27 set incsearch
28
29 " destaque dos resultados
30 set hlsearch
" Press ? for help
.. (up a dir)
/home/areis/.vim/colors/
dracula.vim
Tomorrow-Night-Eighties.vim
Cara eu acho que pode ter relação com algum plugin ou algo do tipo que pode tar substituindo seu color scheme,
Um teste que pode ser feito, abra um arquivo qualquer e digite
:colorscheme Tomorrow-Night-Eighties
Se funcionar é um problema com outros scripts, se não tem algo mal instalado nesse seu tema, talvez baixar um outra versão desse cara seja uma solução.
Me diz ai o resultado.
Não sei se ajuda Henqui, mas segue /$HOME/.bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
1 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
2 # for examples
3
4 # If not running interactively, don't do anything
5 case $- in
6 *i*) ;;
7 *) return;;
8 esac
9
10 # don't put duplicate lines or lines starting with space in the history.
11 # See bash(1) for more options
12 HISTCONTROL=ignoreboth
13
14 # append to the history file, don't overwrite it
15 shopt -s histappend
16
17 # for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
18 HISTSIZE=1000
19 HISTFILESIZE=2000
20
21 # check the window size after each command and, if necessary,
22 # update the values of LINES and COLUMNS.
23 shopt -s checkwinsize
24
25 # If set, the pattern "**" used in a pathname expansion context will
26 # match all files and zero or more directories and subdirectories.
27 #shopt -s globstar
28
29 # make less more friendly for non-text input files, see lesspipe(1)
30 #[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
31
32 # set variable identifying the chroot you work in (used in the prompt below)
33 if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
34 debian_chroot=$(cat /etc/debian_chroot)
35 fi
36
37 # set a fancy prompt (non-color, unless we know we "want" color)
38 case "$TERM" in
39 xterm-color|*-256color) color_prompt=yes;;
40 esac
41
42 # uncomment for a colored prompt, if the terminal has the capability; turned
43 # off by default to not distract the user: the focus in a terminal window
44 # should be on the output of commands, not on the prompt
45 force_color_prompt=yes
46
47 if [ -n "$force_color_prompt" ]; then
48 if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
49 # We have color support; assume it's compliant with Ecma-48
50 # (ISO/IEC-6429). (Lack of such support is extremely rare, and such
51 # a case would tend to support setf rather than setaf.)
52 color_prompt=yes
53 else
54 color_prompt=
55 fi
56 fi
57
58 if [ "$color_prompt" = yes ]; then
59 #PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
60 PS1='${debian_chroot:+($debian_chroot)}\[\033[91m\]\u@\h\[\033[1;37m\]:\[\033[1;32m\]\w\[\033[1;33m\]\$ '
1,1 Top
else
52 #PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
51 PS1='${debian_chroot:+($debian_chroot)}\[\033[91m\]\u@\h\[\033[1;37m\]:\[\033[1;32m\]\w\[\033[1;33m\]\$ '
50 fi
49 unset color_prompt force_color_prompt
48
47 # If this is an xterm set the title to user@host:dir
46 case "$TERM" in
45 xterm*|rxvt*)
44 PS1="\[\e]0;${debian_chroot:+($debian_chroot)}\u@\h: \w\a\]$PS1"
43 ;;
42 *)
41 ;;
40 esac
39
38 # enable color support of ls and also add handy aliases
37 if [ -x /usr/bin/dircolors ]; then
36 test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
35 alias ls='ls --color=auto'
34 #alias dir='dir --color=auto'
33 #alias vdir='vdir --color=auto'
32
31 #alias grep='grep --color=auto'
30 #alias fgrep='fgrep --color=auto'
29 #alias egrep='egrep --color=auto'
28 fi
27
26 # colored GCC warnings and errors
25 #export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
24
23 # some more ls aliases
22 #alias ll='ls -l'
21 #alias la='ls -A'
20 #alias l='ls -CF'
19
18 # Alias definitions.
17 # You may want to put all your additions into a separate file like
16 # ~/.bash_aliases, instead of adding them here directly.
15 # See /usr/share/doc/bash-doc/examples in the bash-doc package.
14
13 if [ -f ~/.bash_aliases ]; then
12 . ~/.bash_aliases
11 fi
10
9 # enable programmable completion features (you don't need to enable
8 # this, if it's already enabled in /etc/bash.bashrc and /etc/profile
7 # sources /etc/bash.bashrc).
6 if ! shopt -oq posix; then
5 if [ -f /usr/share/bash-completion/bash_completion ]; then
4 . /usr/share/bash-completion/bash_completion
3 elif [ -f /etc/bash_completion ]; then
2 . /etc/bash_completion
1 fi
115 fi
115,1 Bot
Rodei esse comando, mas nada feito. rsrs... Tá foda.
:colorscheme Tomorrow-Night-Eighties/
Rodei o comando com outro tema, mas nada ocorreu.
:colorscheme dracula
Pesquisei na net e nao achei nada em relação ao bashrc.
Minha ultima tentativa tenta pegar o Tomorrow-Night-Eighties do meu repositorio.
Remove todas essas temas que tens e adiciona esse ai usando
wget https://raw.githubusercontent.com/hdamaich/dotvim/master/colors/Tomorrow-Night-Eighties.vim
Vou fazer aqui. Vamos ver o que ocorre.
Fiz aqui. Nada ocorreu! hehe... vou procurar com calma isso amanhã. Mas valeu pelo help por equanto Henrique.
Salve Henrique, dei uma pesquisa achei uma dica: https://superuser.com/questions/682564/colorscheme-in-vimrc-not-working
Embora não compreedi esta frase: "Once you find it, you can remove or comment out that line in whatever initialization script it is being called from."
remover o que?
rodando este comando - :scriptnames
O printado na tela é este:
1: /usr/share/vim/vimrc
2: /usr/share/vim/vim80/debian.vim
3: ~/.vimrc
4: ~/.vim/autoload/pathogen.vim
5: /usr/share/vim/vim80/colors/darkblue.vim
6: /usr/share/vim/vim80/filetype.vim
7: /usr/share/vim/vim80/ftplugin.vim
8: /usr/share/vim/vim80/indent.vim
9: /usr/share/vim/vim80/syntax/syntax.vim
10: /usr/share/vim/vim80/syntax/synload.vim
11: /usr/share/vim/vim80/syntax/syncolor.vim
12: ~/.vim/bundle/nerdtree/plugin/NERD_tree.vim
13: ~/.vim/bundle/nerdtree/autoload/nerdtree.vim
14: ~/.vim/bundle/nerdtree/lib/nerdtree/path.vim
15: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_controller.vim
16: ~/.vim/bundle/nerdtree/lib/nerdtree/menu_item.vim
17: ~/.vim/bundle/nerdtree/lib/nerdtree/key_map.vim
18: ~/.vim/bundle/nerdtree/lib/nerdtree/bookmark.vim
19: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_file_node.vim
20: ~/.vim/bundle/nerdtree/lib/nerdtree/tree_dir_node.vim
21: ~/.vim/bundle/nerdtree/lib/nerdtree/opener.vim
22: ~/.vim/bundle/nerdtree/lib/nerdtree/creator.vim
23: ~/.vim/bundle/nerdtree/lib/nerdtree/flag_set.vim
24: ~/.vim/bundle/nerdtree/lib/nerdtree/nerdtree.vim
25: ~/.vim/bundle/nerdtree/lib/nerdtree/ui.vim
26: ~/.vim/bundle/nerdtree/lib/nerdtree/event.vim
27: ~/.vim/bundle/nerdtree/lib/nerdtree/notifier.vim
28: ~/.vim/bundle/nerdtree/autoload/nerdtree/ui_glue.vim
29: ~/.vim/bundle/nerdtree/nerdtree_plugin/exec_menuitem.vim
30: ~/.vim/bundle/nerdtree/nerdtree_plugin/fs_menu.vim
31: /usr/share/vim/vim80/plugin/getscriptPlugin.vim
32: /usr/share/vim/vim80/plugin/gzip.vim
33: /usr/share/vim/vim80/plugin/logiPat.vim
34: /usr/share/vim/vim80/plugin/manpager.vim
35: /usr/share/vim/vim80/plugin/matchparen.vim
36: /usr/share/vim/vim80/plugin/netrwPlugin.vim
37: /usr/share/vim/vim80/plugin/rrhelper.vim
38: /usr/share/vim/vim80/plugin/spellfile.vim
39: /usr/share/vim/vim80/plugin/tarPlugin.vim
40: /usr/share/vim/vim80/plugin/tohtml.vim
41: /usr/share/vim/vim80/plugin/vimballPlugin.vim
42: /usr/share/vim/vim80/plugin/zipPlugin.vim
43: /usr/share/vim/vim80/scripts.vim
37: /usr/share/vim/vim80/plugin/rrhelper.vim
38: /usr/share/vim/vim80/plugin/spellfile.vim
39: /usr/share/vim/vim80/plugin/tarPlugin.vim
40: /usr/share/vim/vim80/plugin/tohtml.vim
41: /usr/share/vim/vim80/plugin/vimballPlugin.vim
42: /usr/share/vim/vim80/plugin/zipPlugin.vim
43: /usr/share/vim/vim80/scripts.vim
44: /usr/share/vim/vim80/ftplugin/vim.vim
45: /usr/share/vim/vim80/indent/vim.vim
46: /usr/share/vim/vim80/syntax/vim.vim
Obs.: Eu reinstalei tudo novamente que existia na pasta ./vim e também criei a pastar colors, por fim, copie dois temas para esta pasta, o Tomorrow-Night-Eighties e dracula.
referências dos temas:
[1] https://github.com/chriskempson/tomorrow-theme/tree/master/vim/colors
[2] https://draculatheme.com/vim/
Acessando o .vimrc com vim.
Retirando as aspas, de alguns deste temas:
"colorscheme Tomorrow-Night-Eighties
"colorscheme dracula
O Tomorrow-Night-Eighties fica muito parecido com o tema industry.
Por fim, o dracula o funto cuntinua escuro e as letras ficam bracas. Vai compreender?
Bom tema dracula realmente tem o fundo é escuro e a letras são brancas. Mas acho claramente vemos que o seu script de cores não esta sendo carregado, pois nao aparece no seu :scriptnames
O vim que eu utilizo aqui está numa versão anterior a sua, pode ser algo do tipo. Eu acho que tem alguma relação com o terminal do seu sistema. Me diz ai as configurações do SO do seu sistema.
Estou usando:
Terminal do MATE versão 1.16.3;
VIM 8.0.550
Eu acho que infelizmente depende do terminal/console que está usando para abrir o VIM, aqui eu estou usando Bash no Ubuntu no Windows
e somente com o tema Tomorrow-Night-Bright
ficou parecido com o do professor. Usando o tema que ele usava (Tomorrow-Night-Eighties
), meu VIM tinha ficado bem zoado.
Meu VIM é 7.4
Uma coisa que eu vi, quando digitei vim --version
, na mensagem sobre a versão apareceu a seguinte info.:
arquivo vimrc de sistema: "$VIM/vimrc"
arquivo vimrc do usuário: "$HOME/.vimrc"
2º arquivo vimrc do usuário: "~/.vim/vimrc"
arquivo exrc do usuário: "$HOME/.exrc"
Verifica se algum desses arquivos pode estar atrapalhando sua configuração.