Back to good old vim.
This commit is contained in:
parent
e95d129d99
commit
5af00aa70d
@ -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*
|
||||
mkdir -p ~/.cache/ ~/.config ~/.local/bin ~/.local/settings
|
||||
|
||||
## neovim
|
||||
rm -rf ~/.config/nvim
|
||||
ln -sf ~/.local/repos/dotfiles/nvim ~/.config/
|
||||
touch ~/.local/settings/init.vim
|
||||
## vim
|
||||
rm -rf ~/.config/vim
|
||||
ln -sf ~/.local/repos/dotfiles/vim ~/.config/
|
||||
touch ~/.local/settings/vimrc
|
||||
|
||||
## fdignore
|
||||
rm -rf ~/.config/fd
|
||||
|
@ -1,3 +1,4 @@
|
||||
set runtimepath+=~/.config/vim
|
||||
call plug#begin('$XDG_DATA_HOME/vim-plugins')
|
||||
Plug 'fatih/molokai'
|
||||
Plug 'junegunn/fzf'
|
||||
@ -15,13 +16,16 @@ call plug#end()
|
||||
set title
|
||||
set number
|
||||
set gdefault
|
||||
set wildmenu
|
||||
set nobackup
|
||||
set incsearch
|
||||
set expandtab
|
||||
set smartcase
|
||||
set splitbelow
|
||||
set splitright
|
||||
set ignorecase
|
||||
set nohlsearch
|
||||
set autoindent
|
||||
set noshowmode
|
||||
set shiftround
|
||||
set cursorline
|
||||
@ -32,10 +36,12 @@ set nowritebackup
|
||||
set bs=2
|
||||
set tabstop=2
|
||||
set scrolloff=5
|
||||
set laststatus=2
|
||||
set shiftwidth=2
|
||||
set showtabline=0
|
||||
set softtabstop=2
|
||||
set winminheight=0
|
||||
set backspace=eol,start,indent
|
||||
set matchpairs+=(:),{:},[:],<:>,':',":"
|
||||
|
||||
nmap <tab> <C-w>w
|
||||
@ -92,4 +98,4 @@ function! LightLineReadonly()
|
||||
return &readonly && &filetype !=# 'help' ? 'RO' : ''
|
||||
endfunction
|
||||
|
||||
source ~/.local/settings/init.vim
|
||||
source ~/.local/settings/vimrc
|
@ -8,7 +8,7 @@ setopt HIST_REDUCE_BLANKS
|
||||
setopt SHARE_HISTORY
|
||||
|
||||
export PATH=~/.local/bin:$PATH
|
||||
export MANPAGER='nvim +Man!'
|
||||
export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/vimrc" | source $MYVIMRC'
|
||||
export LESSHISTFILE='/dev/null'
|
||||
|
||||
[ ! -L ~/.cache ] && { rm -rf ~/.cache; ln -sf $XDG_CACHE_HOME ~/.cache ; }
|
||||
|
Loading…
Reference in New Issue
Block a user