diff options
author | filip <“filip.rabiega@gmail.com”> | 2025-03-05 12:39:35 +0100 |
---|---|---|
committer | filip <“filip.rabiega@gmail.com”> | 2025-03-05 12:39:35 +0100 |
commit | 1ea5a39637b3dcb9c14fc33b44772ec6a56a4643 (patch) | |
tree | 7d098e45a7b726018edba80985751bf60eeae50a | |
parent | 167e1ad6d641d14a812077bbdb3c6b7c8fdcdef9 (diff) | |
download | dotfiles-1ea5a39637b3dcb9c14fc33b44772ec6a56a4643.tar.gz dotfiles-1ea5a39637b3dcb9c14fc33b44772ec6a56a4643.tar.bz2 dotfiles-1ea5a39637b3dcb9c14fc33b44772ec6a56a4643.zip |
updated dotfiles
-rw-r--r-- | .bashrc | 23 | ||||
-rw-r--r-- | .inputrc | 9 | ||||
-rw-r--r-- | .newsboat/cache.db | bin | 1740800 -> 2101248 bytes | |||
-rw-r--r-- | .newsboat/history.cmdline | 1 | ||||
-rw-r--r-- | .newsboat/urls | 2 | ||||
-rw-r--r-- | .vimrc | 45 |
6 files changed, 55 insertions, 25 deletions
@@ -43,7 +43,7 @@ esac # uncomment for a colored prompt, if the terminal has the capability; turned # off by default to not distract the user: the focus in a terminal window # should be on the output of commands, not on the prompt -#force_color_prompt=yes +force_color_prompt=yes if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then @@ -85,7 +85,7 @@ if [ -x /usr/bin/dircolors ]; then fi # colored GCC warnings and errors -#export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' # Add an "alert" alias for long running commands. Use like so: # sleep 10; alert @@ -111,23 +111,18 @@ if ! shopt -oq posix; then fi fi +# Set vi mode as the default mode set -o vi +# Set options for some frequently used programs export LS_OPTIONS='-lha --color=auto' -alias ls='ls $LS_OPTIONS' -alias r='ranger' -alias obs='nohup /usr/bin/obsidian &' -alias vrc='vim ~/.vimrc' -alias brc='vim ~/.bashrc && source $_' -alias cts='ssh root@rabiega.xyz' -alias ctg='ssh git@rabiega.xyz' -alias nb='newsboat' -alias nb-add='cat >> ~/.newsboat/urls << EOF' -alias dotfiles="/usr/bin/git --git-dir=$HOME/.dotfiles --work-tree=$HOME" -alias obsidian="/usr/bin/git --git-dir=$HOME/obsidian --work-tree=$HOME/obsidian" +export MKDIR_OPTIONS='-p' +# Groff shenanigans groffe(){ - groff -e $1.ms -ms -Tpdf > $1.pdf + groff -Kutf8 -Tpdf -mec -ms $1.ms > $1.pdf } +# Bind Esc to CapsLock and vice versa +export MANPAGER="vim -M +MANPAGER - " setxkbmap -option caps:swapescape diff --git a/.inputrc b/.inputrc new file mode 100644 index 0000000..4a659e4 --- /dev/null +++ b/.inputrc @@ -0,0 +1,9 @@ + set editing-mode vi + set vi-ins-mode-string \1\e[6 q\2 + set vi-cmd-mode-string \1\e[2 q\2 + + set keymap vi-insert + "jk": vi-movement-mode + "kj": vi-movement-mode + + set keymap vi-command diff --git a/.newsboat/cache.db b/.newsboat/cache.db Binary files differindex b558bcd..7e576b4 100644 --- a/.newsboat/cache.db +++ b/.newsboat/cache.db diff --git a/.newsboat/history.cmdline b/.newsboat/history.cmdline index 81da3bd..73a6bfd 100644 --- a/.newsboat/history.cmdline +++ b/.newsboat/history.cmdline @@ -2,3 +2,4 @@ q !vim .newsboat/config q q +q diff --git a/.newsboat/urls b/.newsboat/urls index 3b8353a..7e5ce16 100644 --- a/.newsboat/urls +++ b/.newsboat/urls @@ -16,3 +16,5 @@ https://boards.4chan.org/his/index.rss https://boards.4chan.org/lit/index.rss http://www.kendo.pl/?format=feed&type=rss https://blog.linuxmint.com/?feed=rss2 +https://security.stackexchange.com/feeds +https://math.stackexchange.com/feeds @@ -1,3 +1,4 @@ +runtime ftplugin/man.vim set number set relativenumber set title @@ -15,9 +16,14 @@ set autoindent set cindent set smartindent set nowrap +set ignorecase +set smartcase +" Use pathogen (plugin manager) +filetype off execute pathogen#infect() +execute pathogen#helptags() syntax on filetype plugin on filetype plugin indent on @@ -27,7 +33,19 @@ autocmd BufWritePost ~/website/*.html !bash ~/.local/bin/update_website autocmd BufWritePost ~/website/*.css !bash ~/.local/bin/update_website " Automatically use black on a Python file -autocmd BufWritePost *.py !black % +autocmd BufWritePost *.py !black --line-length=79 % + +" Pymode config +let g:pymode = 1 +let g:pymode_warnings = 0 +let g:pymode_trim_whitespaces = 1 +let g:pymode_options = 1 +let g:pymode_options_max_line_length = 79 +let g:pymode_options_colorcolumn = 1 +let g:pymode_indent = 1 +let g:pymode_indent_hanging_width = &shiftwidth +let g:pymode_indent_hanging_width = 4 +let g:pymode_doc = 1 " Automatically source .vimrc after saving autocmd BufWritePost ~/.vimrc source $MYVIMRC @@ -41,19 +59,24 @@ autocmd BufWritePre * %s/\s\+$//e autocmd BufWritePre * %s/\n\+\%$//e autocmd BufWritePre * cal cursor(currPos[1], currPos[2]) -map <BS> dB -map s o<Esc> -map S o<Esc>k -map Y y$ -map Z <Esc>o<Esc> +" Mappings +noremap <BS> dBx +nnoremap s o<Esc> +nnoremap S o<Esc>k +nnoremap Y y$ +nnoremap - ddp +nnoremap _ ddkP +nnoremap <C-J> "+yy +nnoremap <C-K> <ESC>"+p +nnoremap <space> i<space><esc> nnoremap <silent> <F7> :tabnew ~/.vimrc<CR> nnoremap <silent> <F8> :TlistToggle<CR> nnoremap <silent> <F9> :NERDTree<CR> - -" Keybindings to simulate system shortcuts -:nnoremap <C-J> "+yy -:nnoremap <C-K> <ESC>"+p - +vnoremap sb "zdi<b><C-R>z</b><Esc> : to do końca nie działa +vnoremap sp "zdi<p><C-R>z</p><Esc> +inoremap <C-d> <Esc>ddi +inoremap <C-y> <Esc>yyi +inoremap <C-p> <Esc>pi inoremap <Space><Space> <Esc>/<++><CR>"_c4l " show existing tab with 4 spaces width |