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
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
.
(P.S. In the future, please don't post images of text.)
Thank you! worked now. Did it with dos2unix.
Sorry for the images of the text.
Kindest regards,
Rodrigo