Skip to content

Troubleshooting

Jonathan Lau edited this page Apr 2, 2019 · 2 revisions

04/02/19 -> I you've followed the installation neovim install instructions, most bugs have been addressed. <Leader> is set to \

Considering coc.nvim instead of deoplete for performance improvements. Autocompletion issues should be addressed in the current .vimrc configuration.

neovim setup issues and fixes

https://thoughtbot.com/blog/my-life-with-neovim

E576: Failed to parse ShaDa file: extra bytes in msgpack string at position 3

rm ~/.local/share/nvim/shada/main.shada

configuration dir

$HOME/.config/nvim/ >> https://github.com/Shougo/dein.vim

E575: viminfo: Illegal starting char in line: ^A<ce>\t<bb>^AJ<85><a9>generator<c4>^Dnvim<a7>version<c4>^KNVIM v0.3.1<a9>max_kbyte
E575: viminfo: Illegal starting char in line: <a3>pid<ce>
E575: viminfo: Illegal starting char in line: <ce>\t<bb>^A^P<81><a1>f<c4>^K~./init.vim

rm $HOME/.config/nvim/viminfo

ModuleNotFoundError: No module named 'solargraph_utils'

tbd

dein plugin manager

https://github.com/Shougo/dein.vim >> :call dein#update()

vim search w/ fzf

https://github.com/junegunn/fzf
  > git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf /usr/lib
    >> ~/.fzf/install
  > add into vim dein plugins in init.vim
    >> call dein#add('junegunn/fzf', { 'build': './install --all', 'merged': 0 })
    >> call dein#add('junegunn/fzf.vim', { 'depends': 'fzf' })

  > Basic cmds
    >> cntrl+r -> cycle prev cmds
    >> cntrl+t -> file search+select

tmux

brew install tmux

main prefix cmd: cntrl+b
exit: exit
tmux prompt: :
detach session: d
restore last session: tmux a #
kill session: tmux kill-session -t :session_name
split pane horizontally:  "
split pane veritcally: %
kill pane: x
big clock: t

autopep8 python

https://github.com/tell-k/vim-autopep8

current set to autoformat on save :Autopep8 on file

search and replace reference

search and replace for specific lines

eg: :133, 178:s/22\d/my_replacement_value/g

key notations

:help key-notation

zsh setup & notes

brew install zsh

https://github.com/robbyrussell/oh-my-zsh
https://sunlightmedia.org/bash-vs-zsh/

references

nvim vimrc:https://github.com/paulrex/

shell

https://www.gnu.org/software/bash/manual/bashref.html#Bash-Conditional-Expressions

  true if file exits: -a
  true if file exists && regular file : -f
  true && file size > 0 : -s