dracula / vim

πŸ§›πŸ»β€β™‚οΈ Dark theme for Vim

Home Page:https://draculatheme.com/vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

can't make dracula_pro installation instructions work for me on Vim

rodaguilera opened this issue Β· comments

What happened

can't make dracula_pro installation instructions work for me on Vim. Did fine with iTerm2 and Xcode.

What I expected to happen

to work as advised in INSTALL.md

Screenshot

Screenshot 2023-05-03 at 00 16 19

Screenshot 2023-05-03 at 00 16 36

Machine Info

  • Vim type (vim/gvim/neovim): vim
  • Vim version: 9.0
  • OS: Darwin MBPM2Rod.local 22.4.0 Darwin Kernel Version 22.4.0: Mon Mar 6 20:59:58 PST 2023; root:xnu-8796.101.5~3/RELEASE_ARM64_T6020 arm64
  • Terminal/Terminal Emulator/VTE: iTerm2
  • TERM environment variable: xterm-256color

Additional Info

my dir tree:

.vim/
β”œβ”€β”€ autoload
β”‚   └── plug.vim
β”œβ”€β”€ colors
β”‚   └── molokai.vim
β”œβ”€β”€ pack
β”‚   └── themes
β”‚       └── start
β”‚           └── dracula_pro
β”‚               β”œβ”€β”€ INSTALL.md
β”‚               β”œβ”€β”€ after
β”‚               β”‚   β”œβ”€β”€ plugin
β”‚               β”‚   β”‚   └── dracula_pro.vim
β”‚               β”‚   └── syntax
β”‚               β”‚       β”œβ”€β”€ css.vim
β”‚               β”‚       β”œβ”€β”€ gitcommit.vim
β”‚               β”‚       β”œβ”€β”€ html.vim
β”‚               β”‚       β”œβ”€β”€ javascript.vim
β”‚               β”‚       β”œβ”€β”€ json.vim
β”‚               β”‚       β”œβ”€β”€ markdown.vim
β”‚               β”‚       β”œβ”€β”€ ocaml.vim
β”‚               β”‚       β”œβ”€β”€ perl.vim
β”‚               β”‚       β”œβ”€β”€ php.vim
β”‚               β”‚       β”œβ”€β”€ plantuml.vim
β”‚               β”‚       β”œβ”€β”€ python.vim
β”‚               β”‚       β”œβ”€β”€ ruby.vim
β”‚               β”‚       β”œβ”€β”€ rust.vim
β”‚               β”‚       β”œβ”€β”€ sass.vim
β”‚               β”‚       β”œβ”€β”€ sh.vim
β”‚               β”‚       β”œβ”€β”€ tex.vim
β”‚               β”‚       β”œβ”€β”€ typescript.vim
β”‚               β”‚       β”œβ”€β”€ typescriptreact.vim
β”‚               β”‚       β”œβ”€β”€ vim.vim
β”‚               β”‚       β”œβ”€β”€ xml.vim
β”‚               β”‚       └── yaml.vim
β”‚               β”œβ”€β”€ autoload
β”‚               β”‚   β”œβ”€β”€ airline
β”‚               β”‚   β”‚   └── themes
β”‚               β”‚   β”‚       └── dracula_pro.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro.vim
β”‚               β”‚   └── lightline
β”‚               β”‚       └── colorscheme
β”‚               β”‚           └── dracula_pro.vim
β”‚               β”œβ”€β”€ colors
β”‚               β”‚   β”œβ”€β”€ dracula_pro.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro_base.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro_blade.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro_buffy.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro_lincoln.vim
β”‚               β”‚   β”œβ”€β”€ dracula_pro_morbius.vim
β”‚               β”‚   └── dracula_pro_van_helsing.vim
β”‚               └── doc
β”‚                   └── dracula_pro.txt
└── plugged
    β”œβ”€β”€ nerdtree
    β”‚   β”œβ”€β”€ CHANGELOG.md
    β”‚   β”œβ”€β”€ LICENCE
    β”‚   β”œβ”€β”€ README.markdown
    β”‚   β”œβ”€β”€ _config.yml
    β”‚   β”œβ”€β”€ autoload
    β”‚   β”‚   β”œβ”€β”€ nerdtree
    β”‚   β”‚   β”‚   └── ui_glue.vim
    β”‚   β”‚   └── nerdtree.vim
    β”‚   β”œβ”€β”€ doc
    β”‚   β”‚   β”œβ”€β”€ NERDTree.txt
    β”‚   β”‚   └── tags
    β”‚   β”œβ”€β”€ lib
    β”‚   β”‚   └── nerdtree
    β”‚   β”‚       β”œβ”€β”€ bookmark.vim
    β”‚   β”‚       β”œβ”€β”€ creator.vim
    β”‚   β”‚       β”œβ”€β”€ event.vim
    β”‚   β”‚       β”œβ”€β”€ flag_set.vim
    β”‚   β”‚       β”œβ”€β”€ key_map.vim
    β”‚   β”‚       β”œβ”€β”€ menu_controller.vim
    β”‚   β”‚       β”œβ”€β”€ menu_item.vim
    β”‚   β”‚       β”œβ”€β”€ nerdtree.vim
    β”‚   β”‚       β”œβ”€β”€ notifier.vim
    β”‚   β”‚       β”œβ”€β”€ opener.vim
    β”‚   β”‚       β”œβ”€β”€ path.vim
    β”‚   β”‚       β”œβ”€β”€ tree_dir_node.vim
    β”‚   β”‚       β”œβ”€β”€ tree_file_node.vim
    β”‚   β”‚       └── ui.vim
    β”‚   β”œβ”€β”€ nerdtree_plugin
    β”‚   β”‚   β”œβ”€β”€ exec_menuitem.vim
    β”‚   β”‚   β”œβ”€β”€ fs_menu.vim
    β”‚   β”‚   └── vcs.vim
    β”‚   β”œβ”€β”€ plugin
    β”‚   β”‚   └── NERD_tree.vim
    β”‚   β”œβ”€β”€ screenshot.png
    β”‚   └── syntax
    β”‚       └── nerdtree.vim
    β”œβ”€β”€ swift.vim
    β”‚   β”œβ”€β”€ LICENSE
    β”‚   β”œβ”€β”€ README.md
    β”‚   β”œβ”€β”€ ale_linters
    β”‚   β”‚   └── swift
    β”‚   β”‚       └── swiftpm.vim
    β”‚   β”œβ”€β”€ compiler
    β”‚   β”‚   └── swift.vim
    β”‚   β”œβ”€β”€ ctags
    β”‚   β”‚   └── swift.cnf
    β”‚   β”œβ”€β”€ example
    β”‚   β”‚   β”œβ”€β”€ MainViewController.swift
    β”‚   β”‚   β”œβ”€β”€ URL.swift
    β”‚   β”‚   └── example.swift
    β”‚   β”œβ”€β”€ ftdetect
    β”‚   β”‚   └── swift.vim
    β”‚   β”œβ”€β”€ ftplugin
    β”‚   β”‚   └── swift.vim
    β”‚   β”œβ”€β”€ indent
    β”‚   β”‚   └── swift.vim
    β”‚   β”œβ”€β”€ plugin
    β”‚   β”‚   └── swift.vim
    β”‚   β”œβ”€β”€ screenshots
    β”‚   β”‚   β”œβ”€β”€ screen.png
    β”‚   β”‚   β”œβ”€β”€ screen2.png
    β”‚   β”‚   └── screen3.png
    β”‚   β”œβ”€β”€ syntax
    β”‚   β”‚   └── swift.vim
    β”‚   └── syntax_checkers
    β”‚       └── swift
    β”‚           β”œβ”€β”€ swiftlint.vim
    β”‚           └── swiftpm.vim
    └── vim-markdown
        β”œβ”€β”€ CONTRIBUTING.md
        β”œβ”€β”€ Makefile
        β”œβ”€β”€ README.md
        β”œβ”€β”€ after
        β”‚   └── ftplugin
        β”‚       └── markdown.vim
        β”œβ”€β”€ doc
        β”‚   β”œβ”€β”€ tags
        β”‚   └── vim-markdown.txt
        β”œβ”€β”€ ftdetect
        β”‚   └── markdown.vim
        β”œβ”€β”€ ftplugin
        β”‚   └── markdown.vim
        β”œβ”€β”€ indent
        β”‚   └── markdown.vim
        β”œβ”€β”€ registry
        β”‚   └── markdown.yaml
        β”œβ”€β”€ syntax
        β”‚   └── markdown.vim
        └── test
            β”œβ”€β”€ README.md
            β”œβ”€β”€ folding-toc.vader
            β”œβ”€β”€ folding.vader
            β”œβ”€β”€ ge_test.md
            β”œβ”€β”€ header-decrease.vader
            β”œβ”€β”€ indent-new-list-item.vader
            β”œβ”€β”€ indent.md
            β”œβ”€β”€ indent.vader
            β”œβ”€β”€ insert-toc.vader
            β”œβ”€β”€ map.vader
            β”œβ”€β”€ python-folding.vader
            β”œβ”€β”€ run-tests.sh
            β”œβ”€β”€ setextoatx.vader
            β”œβ”€β”€ syntax-singleline.vader
            β”œβ”€β”€ syntax.md
            β”œβ”€β”€ syntax.vader
            β”œβ”€β”€ table-format.vader
            β”œβ”€β”€ toc-autofit.vader
            β”œβ”€β”€ toc.vader
            └── vimrc

51 directories, 113 files

my .vimrc file:

" Install vim-plug if not found
if empty(glob('~/.vim/autoload/plug.vim'))
  silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
    \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif

" Run PlugInstall if there are missing plugins
autocmd VimEnter * if len(filter(values(g:plugs), '!isdirectory(v:val.dir)'))
  \| PlugInstall --sync | source $MYVIMRC
\| endif

call plug#begin('~/.vim/plugged')

Plug 'keith/swift.vim'
Plug 'preservim/vim-markdown'
Plug 'preservim/nerdtree'

call plug#end()

" Set font and size
set guifont=Hack\ Nerd\ Font\ Regular:h16

" Enable syntax highlighting
syntax enable

" Enable global lateral number line indication
set number

" disable the swapfile
set noswapfile 

" highlight all results
set hlsearch 

" ignore case in search
set ignorecase 

" show search results as you type
set incsearch 

" Enable indent 
filetype plugin indent on

" Set file type detection for shell scripts
au BufRead,BufNewFile *.sh set filetype=sh

" Set indentation options for shell scripts
autocmd FileType sh setlocal shiftwidth=4 tabstop=4 softtabstop=4

" Set indentation options for Makefiles
autocmd FileType make setlocal shiftwidth=4 tabstop=4 softtabstop=4

" Set indent, syntax highlighting and numbered lines for C programming
autocmd FileType c setlocal shiftwidth=4 tabstop=4 softtabstop=4

" Dracula Pro Theme
packadd! dracula_pro
let g:dracula_colorterm = 0
set termguicolors

" Set colorscheme
colorscheme dracula_pro 

There's a known issue with the latest Dracula Pro releases where they were created on a Windows machine in such a way that didn't properly account for file encodings and system handling of newlines.

Try something like find . -type f -exec dos2unix {} + from inside the dracula_pro directory. If you don't have dos2unix, you can do something like cd …dracula_pro && vim $(find . -type f), then :argdo %s/\r// | update and :qall.

Thank you! worked now. Did it with dos2unix.

Sorry for the images of the text.

Kindest regards,
Rodrigo