Commit cb03188e authored by adihrustic's avatar adihrustic

updated

Signed-off-by: adihrustic's avataradihrustic <[email protected]>
parent e43669d0
......@@ -4,10 +4,10 @@ set nocompatible " be improved, required
set rtp+=$HOME/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'takac/vim-hardtime'
Plugin 'BeneCollyridam/futhark-vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'ap/vim-css-color'
Plugin 'farmergreg/vim-lastplace'
Plugin 'gioele/vim-autoswap'
Plugin 'godlygeek/tabular'
Plugin 'honza/vim-snippets'
......@@ -47,29 +47,28 @@ let g:ale_linters = {
\ 'vim' : ['ale_custom_linting_rules', 'vint'],
\ 'zsh' : ['shell', 'shellcheck'],
\}
let g:UltiSnipsExpandTrigger = '<TAB>'
let g:UltiSnipsJumpBackwardTrigger = '<S-Tab>'
let g:UltiSnipsJumpForwardTrigger = '<TAB>'
let g:airline#extensions#hunks#non_zero_only = 1
let g:airline_powerline_fonts = 1
let g:ale_completion_enabled = 1
let g:ale_fix_on_save = 1
let g:ale_set_highlights = 0
let g:ale_sign_error = '✗'
let g:ale_sign_warning = '!'
let g:fzf_layout = { 'down':'10' }
let g:gitgutter_map_keys = 0
let g:indentLine_char = '¦'
let g:move_key_modifier = 'S'
let g:netrw_banner = 0
let g:tagbar_autoclose = 1
let g:tagbar_autofocus = 1
let g:tagbar_compact = 1
let g:tex_fast = ''
let g:undotree_SetFocusWhenToggle = 1
let g:undotree_SplitWidth = 35
let g:undotree_WindowLayout = 2
let g:vimtex_compiler_latexmk = {
let g:UltiSnipsExpandTrigger = '<TAB>'
let g:UltiSnipsJumpBackwardTrigger = '<S-Tab>'
let g:UltiSnipsJumpForwardTrigger = '<TAB>'
let g:airline_powerline_fonts = 1
let g:ale_completion_enabled = 1
let g:ale_fix_on_save = 1
let g:ale_set_highlights = 0
let g:ale_sign_error = '✗'
let g:ale_sign_warning = '!'
let g:fzf_layout = { 'down':'10' }
let g:gitgutter_map_keys = 0
let g:indentLine_char = '¦'
let g:move_key_modifier = 'S'
let g:netrw_banner = 0
let g:tagbar_autoclose = 1
let g:tagbar_autofocus = 1
let g:tagbar_compact = 1
let g:tex_fast = ''
let g:undotree_SetFocusWhenToggle = 1
let g:undotree_SplitWidth = 35
let g:undotree_WindowLayout = 2
let g:vimtex_compiler_latexmk = {
\ 'options' : [
\ '-pdf',
\ '-shell-escape',
......@@ -98,7 +97,6 @@ set backspace=indent,eol,start " Backspace behaviour
set conceallevel=0 " Removes markdown conceal
set encoding=utf8 " Use utf8 as internal encoding
set expandtab " Expand tabs into spaces
" set hlsearch " Highlight search results
set ignorecase " Case insensitive search
set incsearch " Highlight search results as the search is typed
set langmap=åÅ;[],ä;{,ö;},§½;`~,-_;/? " Rebindings for swedish keyboard
......@@ -131,7 +129,6 @@ no j gj
no k gk
no Ö <PageDown>
no Ä <PageUp>
no <C-e> $
vn <C-x> "+y
vn <C-w> <Esc>:w<CR>
no <C-w> :w<CR>
......@@ -148,37 +145,37 @@ nn <expr><C-f> winheight(0) > 40 \|\| winwidth(0) > 170 ? ':wincmd =<CR>':':wi
nn tp :VimtexCompile<CR>:VimtexView<CR>
nn tc :VimtexClean<CR>
" Altgr mappings since it doesn't work as leader
" a c d e f m r s t u z
" ª © ð € đ µ ® ß þ ↓ «
no ª ^
no <expr>© &spelllang=="en" ? ':set spelllang=sv<CR>':':set spelllang=en<CR>'
map:FZF<CR>
nn ð yyp
im ð <Esc>ð
no đ 1z=
vn µ c<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS><Esc>
nn µ cc<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS><Esc>
ino µ <Esc>ciW<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS>
no ® :QuickRun -split 'bot 9sp'<CR>
im ® <Esc>®a
no ß :setlocal spell!<CR>
nn þ :TagbarToggle<CR>
xn þ<CR> :Tabularize/
xn þ<Space> :Tabularize/^\S*/<CR>
map:UndotreeToggle<CR>
no « :TComment<CR>
im « <Esc>«
au BufRead,BufNewFile *.tex setlocal spell
" Leader bindings
let mapleader =" "
no <Leader>a ^
no <Leader>e $
no <expr><Leader>l &spelllang=="en" ? ':set spelllang=sv<CR>':':set spelllang=en<CR>'
map <Leader>o :FZF<CR>
nn <Leader>d yyp
no <Leader>f 1z=
vn <Leader>m c<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS><Esc>
nn <Leader>m cc<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS><Esc>
no <Leader>r :QuickRun -split 'bot 9sp'<CR>
no <Leader>s :setlocal spell!<CR>
nn <Leader>p :TagbarToggle<CR>
xn <Leader>t<CR> :Tabularize/
xn <Leader>t<Space> :Tabularize/^\S*/<CR>
map <Leader>u :UndotreeToggle<CR>
no <Leader>z :TComment<CR>
" AltGr alternatives for insert mode
im ð <Esc><Leader>da
ino µ <Esc>ciW<C-r>=system('python -c "from math import *;print(<C-r>")"')<CR><BS>
im ® <Esc><Leader>ra
im « <Esc><Leader>za
" Other stuff
" Open spelling on .tex files
au BufRead,BufNewFile *.tex setlocal spell
com W :execute ':silent w !sudo tee % > /dev/null' | :edit! " Save as sudo
"Make help open in a new tab
cnoreabbrev <expr> help getcmdtype() == ":" && getcmdline() == "help" ? "vert bo help" : "help"
" Use space to clear search highlights and any message displayed
" nn <silent> <Space> :noh<CR>
ino {<CR> {<CR>}<ESC>O
runtime! ftplugin/man.vim
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
"Jump to last location on startup
au BufReadPost * exe "normal! g'\"zz"
......@@ -10,7 +10,7 @@ setopt nocheckjobs # Don't warn about running processes when exiting
setopt numericglobsort # Sort filenames numerically when it makes sense
setopt rcexpandparam # Array expension with parameters
#zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' # Case insensitive tab completion
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}" # Colored completion (different colors for dirs/files/etc)
eval "$(dircolors -b /home/adi/.dircolors)"
......@@ -64,6 +64,7 @@ ZSH_DISABLE_COMPFIX=true
source $ZSH/oh-my-zsh.sh
#Aliases
alias -s pdf=qpdfview
alias ..="cd .."
alias cat="bat -p"
alias cd..="cd .."
......@@ -74,16 +75,17 @@ alias la="ls -A"
alias ll="ls -lah"
alias notepad='gvim'
alias pacman="sudo pacman --color=always"
alias yay="yay --color=always"
alias py="python"
alias rename='perl-rename'
alias rm="rm -I"
alias spotify='firefox open.spotify.com'
alias usermount='sudo mount -o uid=adi'
alias sysstatus='systemctl status'
alias sysenable='systemctl enable --now'
alias sysdisable='systemctl disable --now'
alias rm="rm -I"
alias -s pdf=qpdfview
alias sysenable='systemctl enable --now'
alias sysstatus='systemctl status'
alias usermount='sudo mount -o uid=adi'
alias vimrc="${=EDITOR} ~/.vimrc"
alias yay="yay --color=always"
alias zshrc="${=EDITOR} ~/.zshrc"
#oneliners
howto() { curl "cht.sh/$*?q&style=native" }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment