vdotfiles

Cem's Dotfiles for Void Linux
git clone git://git.ckyln.com/vdotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 04e23a4845505d47915d47316db010bf3c42087a
parent 5f0971277a6d4791220347f1310910ed4a5cf2a9
Author: Cem Keylan <warc1998@gmail.com>
Date:   Thu, 30 May 2019 12:16:04 +0300

Update

Diffstat:
M.bashrc | 14++++++++++----
M.config/i3/config | 8+++-----
M.config/terminator/config | 3+++
A.vimrc | 138+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 154 insertions(+), 9 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -98,6 +98,8 @@ alias free='free -m' # show sizes in MB alias np='nano -w PKGBUILD' alias more=less alias ncmpcpp="ncmpcpp --port 6601" +alias c="clear" +alias l="ls" alias rm='rm -v' alias ccat="highlight" alias mutt="neomutt" @@ -140,6 +142,7 @@ ex () *.zip) unzip $1 ;; *.Z) uncompress $1;; *.7z) 7z x $1 ;; + *.tar.xz) tar xJf $1 ;; *) echo "'$1' cannot be extracted via ex()" ;; esac else @@ -149,12 +152,15 @@ ex () # better yaourt colors export YAOURT_COLORS="nb=1:pkg=1:ver=1;32:lver=1;45:installed=1;42:grp=1;34:od=1;41;5:votes=1;44:dsc=0:other=1;35" -export PATH=/home/cem/.gem/ruby/2.6.0/bin/:$PATH +export PATH=$HOME/.gem/ruby/2.6.0/bin/:$PATH # Personal Scripts -export PATH=/home/cem/bin/:$PATH -export PATH=/home/cem/.scripts/:$PATH +export PATH=$HOME/bin/:$PATH +export PATH=$HOME/.scripts/:$PATH export PATH=/usr/local/bin/:$PATH -export EDITOR="vim" +export EDITOR="/usr/bin/vim" export TERMINAL="terminator" export BROWSER="qutebrowser" +export XDG_CONFIG_HOME=$HOME/.config +export PATH=$HOME/.vim/bundle/vim-live-latex-preview/bin/:$PATH +set -o vi diff --git a/.config/i3/config b/.config/i3/config @@ -17,10 +17,10 @@ set $term terminator set $brow qutebrowser # File Manager -set $fm $term -e "lf && exit" +set $fm terminator -e "lf && exit" # Music Player -set $music $term -e "ncmpcpp --port 6601 && exit" +set $music terminator -e "ncmpcpp --port 6601 && exit" ################################### @@ -33,7 +33,7 @@ set $altmod Mod4 # Configure i3-gaps gaps inner 15 gaps outer 15 -for_window [class=".*"] border pixel 2 +for_window [class=".*"] border pixel 0 # Font font pango:monospace 11 @@ -237,8 +237,6 @@ bindsym $mod+c exec --no-startup-id $term -e "calcurse && exit" # Disable (if override exists for nightmode and set background exec --no-startup-id $HOME/bin/nightmodetoggle disable -# Start Nextcloud Sync Client -exec --no-startup-id nextcloud # Start Compositor exec --no-startup-id compton diff --git a/.config/terminator/config b/.config/terminator/config @@ -1,6 +1,9 @@ [global_config] [keybindings] next_profile = <Primary><Shift>p + zoom_in = <Shift><Super>j + zoom_normal = <Shift><Super>h + zoom_out = <Shift><Super>k [layouts] [[default]] [[[child1]]] diff --git a/.vimrc b/.vimrc @@ -0,0 +1,138 @@ +" The default vimrc file. +" +" Maintainer: Bram Moolenaar <Bram@vim.org> +" Last change: 2019 Feb 18 +" +" This is loaded if no vimrc file was found. +" Except when Vim is run with "-u NONE" or "-C". +" Individual settings can be reverted with ":set option&". +" Other commands can be reverted as mentioned below. + +" When started as "evim", evim.vim will already have done these settings. +if v:progname =~? "evim" + finish +endif + +" Bail out if something that ran earlier, e.g. a system wide vimrc, does not +" want Vim to use these default values. +if exists('skip_defaults_vim') + finish +endif + +" Use Vim settings, rather than Vi settings (much better!). +" This must be first, because it changes other options as a side effect. +" Avoid side effects when it was already reset. +if &compatible + set nocompatible +endif + +" When the +eval feature is missing, the set command above will be skipped. +" Use a trick to reset compatible only when the +eval feature is missing. +silent! while 0 + set nocompatible +silent! endwhile + +" Allow backspacing over everything in insert mode. +set backspace=indent,eol,start + +set history=200 " keep 200 lines of command line history +set ruler " show the cursor position all the time +set showcmd " display incomplete commands +set wildmenu " display completion matches in a status line + +set ttimeout " time out for key codes +set ttimeoutlen=100 " wait up to 100ms after Esc for special key + +" Show @@@ in the last line if it is truncated. +set display=truncate + +" Show a few lines of context around the cursor. Note that this makes the +" text scroll if you mouse-click near the start or end of the window. +set scrolloff=5 + +" Do incremental searching when it's possible to timeout. +if has('reltime') + set incsearch +endif + +" Do not recognize octal numbers for Ctrl-A and Ctrl-X, most users find it +" confusing. +set nrformats-=octal + +" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries. +if has('win32') + set guioptions-=t +endif + +" Don't use Ex mode, use Q for formatting. +" Revert with ":unmap Q". +map Q gq + +" CTRL-U in insert mode deletes a lot. Use CTRL-G u to first break undo, +" so that you can undo CTRL-U after inserting a line break. +" Revert with ":iunmap <C-U>". +inoremap <C-U> <C-G>u<C-U> + +" In many terminal emulators the mouse works just fine. By enabling it you +" can position the cursor, Visually select and scroll with the mouse. +if has('mouse') + set mouse=a +endif + +" Switch syntax highlighting on when the terminal has colors or when using the +" GUI (which always has colors). +if &t_Co > 2 || has("gui_running") + " Revert with ":syntax off". + syntax on + + " I like highlighting strings inside C comments. + " Revert with ":unlet c_comment_strings". + let c_comment_strings=1 +endif + +" Only do this part when Vim was compiled with the +eval feature. +if 1 + + " Enable file type detection. + " Use the default filetype settings, so that mail gets 'tw' set to 72, + " 'cindent' is on in C files, etc. + " Also load indent files, to automatically do language-dependent indenting. + " Revert with ":filetype off". + filetype plugin indent on + + " Put these in an autocmd group, so that you can revert them with: + " ":augroup vimStartup | au! | augroup END" + augroup vimStartup + au! + + " When editing a file, always jump to the last known cursor position. + " Don't do it when the position is invalid, when inside an event handler + " (happens when dropping a file on gvim) and for a commit message (it's + " likely a different one than last time). + autocmd BufReadPost * + \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' + \ | exe "normal! g`\"" + \ | endif + + augroup END + +endif + +" Convenient command to see the difference between the current buffer and the +" file it was loaded from, thus the changes you made. +" Only define it when not defined already. +" Revert with: ":delcommand DiffOrig". +if !exists(":DiffOrig") + command DiffOrig vert new | set bt=nofile | r ++edit # | 0d_ | diffthis + \ | wincmd p | diffthis +endif + +if has('langmap') && exists('+langremap') + " Prevent that the langmap option applies to characters that result from a + " mapping. If set (default), this may break plugins (but it's backward + " compatible). + set nolangremap +endif +set number relativenumber +execute pathogen#infect() +filetype plugin indent on