aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.vimrc2
-rw-r--r--Documents/wiki/i3wm.md (renamed from wiki/dotfiles/xorg.md)14
-rw-r--r--Documents/wiki/index.md12
-rw-r--r--Documents/wiki/vim.md33
-rw-r--r--wiki/dotfiles/index.md11
-rw-r--r--wiki/dotfiles/vim.md64
6 files changed, 52 insertions, 84 deletions
diff --git a/.vimrc b/.vimrc
index 6ec5116..b9830a1 100644
--- a/.vimrc
+++ b/.vimrc
@@ -114,7 +114,7 @@ vnoremap < <gv
vnoremap > >gv
" Vimwiki
-let g:vimwiki_list = [{'path': '~/wiki/', 'syntax': 'markdown', 'ext': '.md'}]
+let g:vimwiki_list = [{'path': '~/Documents/wiki/', 'syntax': 'markdown', 'ext': '.md'}]
nnoremap <Leader>c :let &cole=(&cole == 2) ? 0 : 2 <bar> echo 'conceallevel ' . &cole <CR>
function! VimwikiLinkHandler(link)
diff --git a/wiki/dotfiles/xorg.md b/Documents/wiki/i3wm.md
index c44789b..2002f6e 100644
--- a/wiki/dotfiles/xorg.md
+++ b/Documents/wiki/i3wm.md
@@ -1,16 +1,14 @@
-# Xorg
+# i3wm
-## i3wm
-
-### Workspace generator
-Script `/bin/i3-workspace.sh` provides an easy-to-use layout generator:
+## Workspace generator
+Script `~/.vifm/scripts/i3-workspace.sh` provides an easy-to-use layout generator:
```bash
./i3-workspace.sh ~/path/to/my/working/directory
```
-It will open `nvim` + `alacritty` in a new workspace. It is prefered to move it to bin and alias to some command in [vifm](vim.md).
+It open opens `nvim` + 2 instances of `alacritty` in a new workspace. This script is aliasde to `:w` command in `vifm`.
-### Bassboost mode
-While key combination `win+b` is pressed, **crazy bassboost mic mode** is active. Basically it's just the toggle between two mic volumes - default and very high (up to the point when it starts distorting).
+## Bassboost mode
+While key combination `win+b` is pressed, **crazy mic bassboost mode** is active. Basically it's just the toggle between two mic volumes - default and very high (up to the point when it starts distorting).
This is just for fun and probably should not be here, but I decided to leave it anyway.
**Note**: using this is dangerous since it might hurt someone's ears or damage the microphone.
diff --git a/Documents/wiki/index.md b/Documents/wiki/index.md
new file mode 100644
index 0000000..8385adc
--- /dev/null
+++ b/Documents/wiki/index.md
@@ -0,0 +1,12 @@
+# dotfiles
+This repo contains dotfiles, configs and environment settings for my Arch setup.
+Documentation is managed via [vimwiki](https://github.com/vimwiki/vimwiki) plugin.
+
+Github repo: [dotfiles](https://github.com/eug-vs/dotfiles)
+
+Author: [eug-vs](https://github.com/eug-vs/)
+
+## Wiki
+ - [i3wm](i3wm) - my customizations of i3 tiling window manager
+ - [vim](vim.md) - minimal Neovim configuration and tips
+
diff --git a/Documents/wiki/vim.md b/Documents/wiki/vim.md
new file mode 100644
index 0000000..724ef7c
--- /dev/null
+++ b/Documents/wiki/vim.md
@@ -0,0 +1,33 @@
+# Vim
+
+After having used [Spacevim](https://spacevim.org/) for quite a while,
+I've decided to switch back to classic Neovim and keep configuration as tight and minimal as possible.
+
+I keep my configuration in casual `~/.vimrc` which is sourced by Neovim in `init.vim`.
+
+## NerdFonts
+I use `DejaVu Sans Mono` - download from [AUR](https://aur.archlinux.org/packages/nerd-fonts-dejavu-complete/)
+
+## Vim-plug
+Some functionality still requires me to install a few plugins, and `vim-plug` is my plugin manager of choice.
+Intsallation (note that command is custom):
+```bash
+curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
+```
+
+All plugins are listed in [`.config/nvim/vim-plug/plugins.vim`](../../.config/nvim/vim-plug/plugins.vim) and sourced from `init.vim` directly (before `~/.vimrc`).
+
+## Featured plugins
+
+### [Defx](https://github.com/Shougo/defx.nvim)
+I like to always keep a tree-view of my project at hand. This is the best option out there - dark-powered file explorer.
+
+### [Startify](https://github.com/mhinz/vim-startify)
+Provides a cool startup screen. Also allows to manage sessions more easily, but I haven't got used to them yet.
+Not essential, I might get rid of it in future.
+
+### [VimWiki](https://github.com/vimwiki/vimwiki)
+VimWiki made this documentation possible.
+
+Custom mapping: `<Leader>c` - toggle conceal level (to comfortably edit links)
+
diff --git a/wiki/dotfiles/index.md b/wiki/dotfiles/index.md
deleted file mode 100644
index 1088a39..0000000
--- a/wiki/dotfiles/index.md
+++ /dev/null
@@ -1,11 +0,0 @@
-# dotfiles
-This repo contains configs, dotfiles and environment settings for my Arch linux setup.
-Github repo: [dotfiles](https://github.com/eug-vs/dotfiles)
-Owner: [eug-vs](https://github.com/eug-vs/)
-
-## Wiki
- - [Vim-related stuff](vim.md) (my minimal `nvim` and `vifm` configuration)
- - [Xorg](xorg.md) (featuring `i3 Window Manager` config)
-
-## TODO
- - resolve old relative links
diff --git a/wiki/dotfiles/vim.md b/wiki/dotfiles/vim.md
deleted file mode 100644
index 16bf2c3..0000000
--- a/wiki/dotfiles/vim.md
+++ /dev/null
@@ -1,64 +0,0 @@
-# Vim
-
-After having used [Spacevim](https://spacevim.org/) for quite a while,
-I've decided to switch back to classic Neovim and keep configuration as tight and minimal as possible.
-
-I keep my configuration in casual `~/.vimrc` which is sourced by Neovim in `init.vim`.
-
-## Vim-plug
-Some functionality still requires me to install a few plugins, and `vim-plug` is my plugin manager of choice.
-Intsallation (note that command differs from default):
-```bash
-curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
-```
-
-All plugins are listed in [`config/nvim/vim-plug/plugins.vim`](vfile:../config/nvim/vim-plug/plugins.vim) and sourced from `init.vim` directly (before `~/.vimrc`).
-Current list of plugins:
- - Defx - I like to always keep a tree-view of my project at hand. This is the best option out there
- - Startify - Cool startup screen and session manager
- - Vimwiki - Manage my markdown docs
-
-## NerdFonts
-Download from [AUR](https://aur.archlinux.org/packages/nerd-fonts-dejavu-complete/)
-
-## VimWiki
-`VimWiki` can be accessed by `<Leader>ww` from any `Vim` instance (requires `env` repo to be in `~/Documents/Projects/`).
-
-To toggle conceal level (to comfortably edit links) use `<Leader>c`.
-
-## Vifm
-
-### Inactive pane displays ugly
-Remove line containing `OtherWin` in [`$VIFM/colors/Default.vifm`](vfile:~/.config/vifm/colors/Default.vifm)
-
-### Remove borders
-Replace all occurences of `ctermbg=white` with `ctermbg=black` in [the same file](vfile:~/.config/vifm/colors/Default.vifm).
-
-### Icons
-Support icons - extend [`vifmrc`](vfile:~/.config/vifm/vifmrc):
-```
-" file types
-set classify=' :dir:/, :exe:, :reg:, :link:'
-" various file names
-set classify+=' ::../::, ::*.sh::, ::/^copying|license$/::, ::.git/,,*.git/::, ::*.epub,,*.fb2,,*.djvu::, ::*.pdf::, ::*.htm,,*.html,,**.[sx]html,,*.xml::'
-" archives
-set classify+=' ::*.7z,,*.ace,,*.arj,,*.bz2,,*.cpio,,*.deb,,*.dz,,*.gz,,*.jar,,*.lzh,,*.lzma,,*.rar,,*.rpm,,*.rz,,*.tar,,*.taz,,*.tb2,,*.tbz,,*.tbz2,,*.tgz,,*.tlz,,*.trz,,*.txz,,*.tz,,*.tz2,,*.xz,,*.z,,*.zip,,*.zoo::'
-" images
-set classify+=' ::*.bmp,,*.gif,,*.jpeg,,*.jpg,,*.ico,,*.png,,*.ppm,,*.svg,,*.svgz,,*.tga,,*.tif,,*.tiff,,*.xbm,,*.xcf,,*.xpm,,*.xspf,,*.xwd::'
-" audio
-set classify+=' ::*.aac,,*.anx,,*.asf,,*.au,,*.axa,,*.flac,,*.m2a,,*.m4a,,*.mid,,*.midi,,*.mp3,,*.mpc,,*.oga,,*.ogg,,*.ogx,,*.ra,,*.ram,,*.rm,,*.spx,,*.wav,,*.wma,,*.ac3::'
-" media
-set classify+=' ::*.avi,,*.axv,,*.divx,,*.m2v,,*.m4p,,*.m4v,,.mka,,*.mkv,,*.mov,,*.mp4,,*.flv,,*.mp4v,,*.mpeg,,*.mpg,,*.nuv,,*.ogv,,*.pbm,,*.pgm,,*.qt,,*.vob,,*.wmv,,*.xvid::'
-" office files
-set classify+=' ::*.doc,,*.docx::, ::*.xls,,*.xls[mx]::, ::*.pptx,,*.ppt::'
-" development
-set classify+=' ::*.js,,*.jsx::, ::*.ts,,*.tsx::, ::*.md::, ::*.json::, ::*.c,,*.cc,,*.h,,*.cpp::, ::*.vim::'
-```
-
-
-### Open dir as i3 workspace
-To use [workspace generator script](xorg.md) in `vifm`, add this line to [`vifmrc`](vfile:~/.config/vifm/vifmrc), preferably where all `!command` lines are (around line ~140):
-```
-command! w :!i3-workspace.sh %d/%c
-```
-