Oh well, neovim is still better, sorry.

This commit is contained in:
Bartek Stalewski 2021-10-08 01:04:31 +02:00
parent ead1789f77
commit 6c50a7b818
4 changed files with 6 additions and 11 deletions

View File

@ -10,10 +10,10 @@ rm -rf ~/.cache ~/.config/_cache ~/.config/vim ~/.config/zsh
rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh* rm -rf ~/.fdignore ~/.fzf.bash ~/.fzf.zsh ~/.gitconfig ~/.gitignore ~/.history ~/.tmux.conf ~/.vim* ~/.zcomp* ~/.zsh*
mkdir -p ~/.cache/ ~/.config ~/.local/bin ~/.local/settings mkdir -p ~/.cache/ ~/.config ~/.local/bin ~/.local/settings
## vim ## neovim
rm -rf ~/.config/vim rm -rf ~/.config/nvim
ln -sf ~/.local/repos/dotfiles/vim ~/.config/ ln -sf ~/.local/repos/dotfiles/nvim ~/.config/
touch ~/.local/settings/vimrc touch ~/.local/settings/init.vim
## fdignore ## fdignore
rm -rf ~/.config/fd rm -rf ~/.config/fd

View File

@ -16,16 +16,13 @@ call plug#end()
set title set title
set number set number
set gdefault set gdefault
set wildmenu
set nobackup set nobackup
set incsearch
set expandtab set expandtab
set smartcase set smartcase
set splitbelow set splitbelow
set splitright set splitright
set ignorecase set ignorecase
set nohlsearch set nohlsearch
set autoindent
set noshowmode set noshowmode
set shiftround set shiftround
set cursorline set cursorline
@ -36,12 +33,10 @@ set nowritebackup
set bs=2 set bs=2
set tabstop=2 set tabstop=2
set scrolloff=5 set scrolloff=5
set laststatus=2
set shiftwidth=2 set shiftwidth=2
set showtabline=0 set showtabline=0
set softtabstop=2 set softtabstop=2
set winminheight=0 set winminheight=0
set backspace=eol,start,indent
set matchpairs+=(:),{:},[:],<:>,':',":" set matchpairs+=(:),{:},[:],<:>,':',":"
nmap <tab> <C-w>w nmap <tab> <C-w>w
@ -98,4 +93,4 @@ function! LightLineReadonly()
return &readonly && &filetype !=# 'help' ? 'RO' : '' return &readonly && &filetype !=# 'help' ? 'RO' : ''
endfunction endfunction
source ~/.local/settings/vimrc source ~/.local/settings/init.vim

View File

@ -8,7 +8,7 @@ setopt HIST_REDUCE_BLANKS
setopt SHARE_HISTORY setopt SHARE_HISTORY
export PATH=~/.local/bin:$PATH export PATH=~/.local/bin:$PATH
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC' export MANPAGER="nvim +Man!"
export LESSHISTFILE='/dev/null' export LESSHISTFILE='/dev/null'
[ ! -L ~/.cache ] && { rm -rf ~/.cache; ln -sf $XDG_CACHE_HOME ~/.cache ; } [ ! -L ~/.cache ] && { rm -rf ~/.cache; ln -sf $XDG_CACHE_HOME ~/.cache ; }