+ Add vim_idea

This commit is contained in:
ziro 2022-02-15 08:46:28 +07:00
parent e7abdae8ae
commit 3197fb684c
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
5 changed files with 8 additions and 3 deletions

0
.config/vim/vim_idea Normal file
View file

View file

@ -100,7 +100,7 @@ Plug 'dense-analysis/ale'
" --- For rust
Plug 'rust-lang/rust.vim'
Plug 'wakatime/vim-wakatime'
" Plug 'wakatime/vim-wakatime'
call plug#end()

View file

@ -24,6 +24,7 @@ syntax on
filetype indent plugin on
map <C-n> :NERDTreeToggle<CR>
let mapleader=" "
set guifont=Iosevka:h15
" ----- Folding stuff
set foldnestmax=10
@ -72,6 +73,9 @@ function! TwiddleCase(str)
endfunction
vnoremap ~ y:call setreg('', TwiddleCase(@"), getregtype(''))<CR>gv""Pgv
" Format with by pressing Q useful for markdown / other markup languages
map Q gq
" ----- 'vim -b' = edit binary using xxd-format!
augroup Binary
au!
@ -93,6 +97,7 @@ autocmd Filetype html set ai sw=4 ts=4 sta et fo=croql
autocmd Filetype css set ai sw=4 ts=4 sta et fo=croql
autocmd Filetype javascript set ai sw=4 ts=4 sta et fo=croql
autocmd Filetype vue set ai sw=4 ts=4 sta et fo=croql
autocmd Filetype php set ai sw=4 ts=4 sta et fo=croql
" ----- Auto refresh vimrc
augroup myvimrc

View file

@ -1,10 +1,11 @@
#!/bin/zsh
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk"
export ANDROID_SDK_ROOT="/opt/android-sdk"
# -- Path
# PATH="$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')${PATH:+:${PATH}}"
PATH="$ANDROID_HOME/cmdline-tools/latest/bin:$HOME/.local/share/npm/bin:$HOME/.local/share/cargo/bin:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')${PATH:+:${PATH}}"
PATH="$HOME/.local/share/go/bin:$ANDROID_HOME/cmdline-tools/latest/bin:$HOME/.local/share/npm/bin:$HOME/.local/share/cargo/bin:$(du "$HOME/.local/bin/" | cut -f2 | paste -sd ':')${PATH:+:${PATH}}"
export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/library
# -- IBus stuff (IME)

View file

@ -49,4 +49,3 @@ source $ZSH_PLUGINS/fast-syntax-highlighting/fast-syntax-highlighting.plugin.zsh
source $ZSH_PLUGINS/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh 2>/dev/null
#source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
#source $ZSH_CUSTOM/plugins/fsh/fast-syntax-highlighting.plugin.zsh