diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2021-07-01 15:45:59 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2021-07-01 15:45:59 +0200 |
| commit | 2535633569aa4b9f692c190894e2146484ac478c (patch) | |
| tree | c32cd753389bab573301c939fb6911b200ff5c0d /config | |
| parent | c6b4fa4741c5559abd2f8e569d8ce91c402406c2 (diff) | |
| download | dotfiles-2535633569aa4b9f692c190894e2146484ac478c.tar.gz dotfiles-2535633569aa4b9f692c190894e2146484ac478c.tar.bz2 dotfiles-2535633569aa4b9f692c190894e2146484ac478c.zip | |
Added vim spell checker toggle, Updated vim goyo width, removing ~/git/dotfiles prefix in rc alias
Diffstat (limited to 'config')
| -rw-r--r-- | config/vim/pluggins.vim | 15 | ||||
| -rw-r--r-- | config/vim/vimrc | 4 | ||||
| -rw-r--r-- | config/zsh/aliases.zsh | 8 |
3 files changed, 17 insertions, 10 deletions
diff --git a/config/vim/pluggins.vim b/config/vim/pluggins.vim index 39dcd05..3f3e20c 100644 --- a/config/vim/pluggins.vim +++ b/config/vim/pluggins.vim @@ -16,8 +16,6 @@ call plug#begin($XDG_DATA_HOME . '/vim/plugged') Plug 'AndrewRadev/sideways.vim' " Move arguments sideways Plug 'FooSoft/vim-argwrap' " Put arguments on multiple lines - Plug 'skammer/vim-css-color' - " markdown preview in browser " Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() }, 'for': ['markdown', 'vim-plug']} @@ -31,19 +29,22 @@ call plug#begin($XDG_DATA_HOME . '/vim/plugged') " themes " Plug 'joshdick/onedark.vim' " onedark - Plug 'dracula/vim', {'as': 'vim'} " dracula - Plug 'altercation/vim-colors-solarized' " solarized + " Plug 'dracula/vim', {'as': 'vim'} " dracula + " Plug 'altercation/vim-colors-solarized' " solarized Plug 'morhetz/gruvbox' " gruvbox " intresting but not used - Plug 'vim-scripts/rfc-syntax' " rfc + " Plug 'vim-scripts/rfc-syntax' " rfc " my plugins - Plug 'cacharle/c_formatter_42.vim' - Plug 'cacharle/doxy42.vim' + " Plug 'cacharle/c_formatter_42.vim' + " Plug 'cacharle/doxy42.vim' " s19 at home Plug 'cacharle/vim-42header' " 42 header " Plug 'ctrlpvim/ctrlp.vim' " Ctrl-P similar to vsc + + " terrible startuptime on markdown/css files https://github.com/ap/vim-css-color/issues/87 + " Plug 'skammer/vim-css-color' call plug#end() diff --git a/config/vim/vimrc b/config/vim/vimrc index c7d4b55..4ba1d1d 100644 --- a/config/vim/vimrc +++ b/config/vim/vimrc @@ -321,6 +321,7 @@ let g:gutentags_ctags_exclude = ['doc/*', 'docs/*', 'Makefile', '.mypy_cache', ' " let g:gutentags_ctags_exclude_wildignore = 1 let g:goyo_height = 90 +let g:goyo_width = 100 set viminfo+=n$XDG_CACHE_HOME/vim/viminfo @@ -328,8 +329,9 @@ let g:python_highlight_all = 1 nnoremap <leader>l :SidewaysRight<CR> nnoremap <leader>h :SidewaysLeft<CR> - nnoremap <leader>w :ArgWrap<CR> +nnoremap <leader>ss :setlocal spell!<CR> hi link juliaFunctionCall Identifier hi link juliaParDelim Delimiter + diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index 79df09b..447380b 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -122,8 +122,12 @@ pacman_url() { pacman -Si "$1" | grep URL | tr -s ' ' | cut -d ' ' -f 3 ; } alias filter-valgrind="sed -e 's/==[0-9]*==/==/' -e 's/0x[0-9A-F]*//'" rc() { - filepath="$(find "$HOME/git/dotfiles" -type f -not -path '*.git/*' | fzf)" && - "$EDITOR" "$filepath" + dir="$HOME/git/dotfiles/" + filepath="$( + find "$dir" -type f -not -path '*.git/*' | + sed "s:$dir::" | + fzf + )" && "$EDITOR" "$dir$filepath" filename="$(basename "$filepath")" case "$filename" in .zshrc|aliases.zsh) |
