Conditionally set the runtime path
This commit is contained in:
parent
87fbd01e21
commit
519fa2ab98
1 changed files with 8 additions and 9 deletions
17
vim/.vimrc
17
vim/.vimrc
|
@ -44,12 +44,11 @@ autocmd FileType markdown,text setl tw=80 wm=2
|
||||||
|
|
||||||
autocmd BufWritePre * :%s/\s\+$//e
|
autocmd BufWritePre * :%s/\s\+$//e
|
||||||
|
|
||||||
" TODO: Make this configurable to handle multiple OSes
|
" Set the runtime path for fzf based on OS
|
||||||
" Arch Linux: set rtp+=~/.fzf
|
if has('mac')
|
||||||
" Thought this was Debian: set rtp+=/usr/local/opt/fzf
|
set rtp+=/opt/homebrew/opt/fzf
|
||||||
" This is Debian: source /usr/share/doc/fzf/examples/fzf.vim
|
elseif executable('apt')
|
||||||
" This works for Debian too:
|
set rtp+=/usr/share/doc/fzf/examples
|
||||||
" set rtp+=/usr/share/doc/fzf/examples
|
elseif executable('pacman')
|
||||||
" macOS: set rtp+=/opt/homebrew/opt/fzf
|
rtp+=~/.fzf
|
||||||
" set rtp+=/usr/local/opt/fzf
|
endif
|
||||||
set rtp+=/opt/homebrew/opt/fzf
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue