Commit graph

79 commits

Author SHA1 Message Date
Marty Oehme 8798642c61 Add word under cursor highlighting to vim 2019-11-21 12:19:03 +01:00
Marty Oehme d97a76dade Add vim-sneak to nvim, to enable fast traversal 2019-11-18 22:55:15 +01:00
Marty Oehme 36fc3e7245 Add pywal automatic setting on restart 2019-11-18 22:54:41 +01:00
Marty Oehme c56e96cc11 Fix some pandoc variables for bibliography 2019-11-18 17:20:43 +01:00
Marty Oehme 15e63044db Add colorscheme switching and airline/tmux autoset
Use <leader><F8> to set a new colorscheme in vim. The airline
automatically sets itself to the corresponding colorscheme, as does the
tmux statusbar at the bottom.

Use <F8> to toggle between dark and light mode for the colorscheme (not
all colorschemes support this unfortunately, I might restrict the
installed colorschemes to those that do). Again, Airline and tmuxline
will automatically adjust themselves.

Tmux prefix highlight plugin has been removed, since its functionality
can be replicated easily with the ?client_prefix function in tmux -
which also works regardless of any styles applied to the statusbar
through tmuxline. Currently, whenever the prefix is active the
clock-area will turn bright blue.
2019-11-18 11:00:10 +01:00
Marty Oehme 4cd3feda3a Switch to official notational velocity vim plugin
It works with fzf, and will use smartcase for its search. Since the
setup is not using skim anymore, the official plugin will do.
2019-11-17 23:03:17 +01:00
Marty Oehme 40b0a2a775 Remove grammarious from vim
I've never actually used it for prose writing, and it depends on Java
installation as a dependency which is not installed on my machines.
2019-11-13 17:48:04 +01:00
Marty Oehme 3c6ef91ae0 Fix shortcuts and settings for bibtex-fzf 2019-11-12 08:38:21 +01:00
Marty Oehme 75195765ca Set fzf commands to actually use FZF 2019-11-04 21:59:43 +01:00
Marty Oehme 570c575776 Add FZF bibliography insertion 2019-11-04 21:45:59 +01:00
Marty Oehme e8e8290426 Edit pandoc academia settings 2019-11-04 19:26:36 +01:00
Marty Oehme 9914f5ae91 Fix pandoc conceal levels and add to Prose group 2019-10-24 17:06:30 +02:00
Marty Oehme 675e4fd9d5 Refactor markdown plugins, enable conceal, add day colorscheme to term 2019-10-18 11:02:11 +02:00
Marty Oehme 320d62e880 Merge branch '56-set-up-vim-for-rmarkdown-and-academic-writing' of gitlab.com:marty-oehme/dotfiles into 56-set-up-vim-for-rmarkdown-and-academic-writing 2019-10-18 11:01:14 +02:00
Marty Oehme 552a56cc33 [nvim] Improve compilation filetype target
Allows compilation using pandoc to happen for markdown, as well as
rmarkdown files.
2019-10-18 10:59:57 +02:00
Marty Oehme 14f6bee7a1 [nvim] Add useful writing colorscheme
Pencil is from reedes, cribbed from iWriter. It is a good, subdued
colorscheme for writing prose. All colorschemes in this vimrc now come
with italicized letters (for comments, and words that should be italic).
All themes also respect the background= dark/light distinction and
enable the respective mode.
2019-10-18 10:59:57 +02:00
Marty Oehme de0b83fb3f [nvim] Add rmarkdown, pandoc plugins and bindings
PDFs can be compiled using rmarkdown by invoking <leader>c, or C to open
the file (which pauses vim however). The best workflow is to open the
pdf manually in something like zathura, which will auto-update when the
document is newly compiled.
2019-10-18 10:59:57 +02:00
Marty Oehme 350158c520 [nvim] Add function to show all keymappings
Use :ShowMaps to display all currently mapped things for vim. Will not
include things like `i`, but actual mappings.
2019-10-18 10:59:02 +02:00
Marty Oehme 48be54b79c Refactor notes/wiki search functions 2019-10-17 18:55:32 +02:00
Marty Oehme 06489ac101 Add yank filename/-path to vim as yf 2019-09-19 15:43:40 +02:00
Marty Oehme 76efabe67b Add gopass settings for vim 2019-09-18 16:01:43 +02:00
Marty Oehme 7e45d94997 Add fuzzy tools to vim and shell
In vim:
Use <leader>c to insert a bibtex reference in your text. By default it
is a pandoc reference (@bibref), but it can be changed to latex style
(\cite(bibref)). <leader>CM inserts a pretty-printed reference to the
selected work, using markdown styling. If you want to insert a citation
while writing, use @@ from insertmode to insert the bibref instead.

The settings add two commands: :CiteRef and :CitePretty which call the
respective functions. You can pass any amount of .bibtex libraries to
the commands and they will be available to fuzzy search through.

:CiteEdit also added to fuzzy find a source and open it in vim for editing.
The function is not working yet, I have to find a way to go from the
fuzzy finder to papis, select the correct file and edit it in vim.

In Shell:
Can cd directories (d, D), open files (f, F), open most recently used
(ru), and edit bibtex references (ref). lowercase is a weighted view
over previously used directories/files, Uppercase is a search of the
whole file structure.

Still outstanding:
Needs the same comfort function additions as vim search, especially
reference search. (i.e., open corresponding document, yank path, open
editor,...)
2019-09-04 17:32:11 +00:00
Marty Oehme 3ce896af43 [nvim] Improve compilation filetype target
Allows compilation using pandoc to happen for markdown, as well as
rmarkdown files.
2019-09-02 23:23:43 +02:00
Marty Oehme dcd3f07a8f [nvim] Add useful writing colorscheme
Pencil is from reedes, cribbed from iWriter. It is a good, subdued
colorscheme for writing prose. All colorschemes in this vimrc now come
with italicized letters (for comments, and words that should be italic).
All themes also respect the background= dark/light distinction and
enable the respective mode.
2019-09-02 23:21:56 +02:00
Marty Oehme 5f57994570 [nvim] Add rmarkdown, pandoc plugins and bindings
PDFs can be compiled using rmarkdown by invoking <leader>c, or C to open
the file (which pauses vim however). The best workflow is to open the
pdf manually in something like zathura, which will auto-update when the
document is newly compiled.
2019-09-02 22:45:24 +02:00
Marty Oehme a84c18f7ab [nvim] Add function to show all keymappings
Use :ShowMaps to display all currently mapped things for vim. Will not
include things like `i`, but actual mappings.
2019-09-02 21:44:54 +02:00
Marty Oehme b5e979189b [nvim] Add german dict possibility 2019-09-02 19:15:14 +02:00
Marty Oehme 29d7d4a65f [nvim] Add spellchecking shortcuts to vim
<leader>O to enable spellchecking for current buffer,
<leader>o to show suggestiong for word under curser.

(Try it out here, just hover over misspelled cursor!)
2019-09-02 19:07:44 +02:00
Marty Oehme b11343b73a Add bats unit testing to repository
Will recursively look for `*.bats` files and run them with bats-core test suite. Simple sample unit tests for existing scripts are included in `.config/shell/rc.d/test`.
2019-07-27 11:42:54 +00:00
Marty Oehme 8494eda973 [nvim] Add shfmt and analysis to zsh files 2019-07-24 10:58:46 +02:00
Marty Oehme 6e09ca47cb [gitlab] Fix sh linting in vim and pipeline 2019-07-23 16:50:30 +02:00
Marty Oehme 2b8540f6cf [nvim] Remove golang-ci metalinter, rely on vim-go
vim-go already provides the linting necessary for golang. Using
golang-ci additionally only complicates matters and provides no benefit.
Additionally, it did not seem to be able to track files other than the
one in the current buffer, or those open in hidden buffers and would
show (false) errors of classes or functions not found even when they
existed.
2019-07-23 15:41:23 +02:00
Marty Oehme 4668849a4f Add italics in vim
Italicizes comments and anything which should be italicized in text
(e.g. markdown *star-surrounded* words). Might lead to errors in ssh
connections, will have to test.
2019-07-16 13:13:48 +02:00
Marty Oehme f3c89aa1e3 Add golang linters to vim 2019-07-11 09:01:00 +02:00
Marty Oehme 6f2f130212 Add golangci linter to vim through ale 2019-07-08 22:06:25 +02:00
Marty Oehme 9a1617b78a Add go configuration to vim
added vim-go plugin and assorted mappings for tests, navigation, running
and documenting go files
2019-07-03 11:49:24 +02:00
Marty Oehme 368032a73c Switch vim keys for Buffer/File opening
Switch fuzzy opening of buffers to <leader>f, and set opening files in
work directory to <leader>F. Switching these two is intended to allow
easier access to buffer switching, which I use much more often than file
access, especially when working over a longer time-frame in vim.
2019-06-26 21:03:33 +02:00
Marty Oehme 07c3d6e05b Revert removal of wiki delete page mapping 2019-06-13 21:38:50 +02:00
Marty Oehme 5257d3e191 Fix keybinds for wiki.vim keeping defaults
HACK HACK HACK
The default keybinds for wiki.vim are now kept, only removing the ones
that I don't need. For now, since wiki.vim does not seem to allow empty
strings being passed as its keybinds (in order to remove them by
overwriting with empty), it just assigns bogus binds with
<leader>== and an arbitrary number of === following.
2019-06-13 11:12:55 +02:00
Marty Oehme 078259182c Add vim rg fulltext fuzzy search for current dir
Allows searching current working directory's files with rg (or
ag,pt,find) when invoked with <c-F> in vim.
2019-06-12 15:11:59 +02:00
Marty Oehme 6557b8dce0 Add quick fuzzy note search to wiki
Use <leader>wf from anywhere to fuzzysearch a phrase over the notes. If
no initial input is given loads all files into the interactive
fuzzysearch. Use <leader>wF to load a more detailed, full-screen windows
(via CtrlSF) which allows direct editing of results and more.
2019-06-12 14:56:15 +02:00
Marty Oehme f06ab7804e Remove subset of vim wiki default mappings
Only keep some of the default vimwiki mappings, since the rest I don't
really need (currently) and they interfere with some other operations I
intend to map (e.g. <leader>wf should fuzzysearch wiki but will toggle a
link when overwritten by the defaults).
2019-06-12 14:22:28 +02:00
Marty Oehme 6298daeca2 Add configurable wiki root directory
Can be set through environment variable WIKIROOT. By default points to
~/Nextcloud/Notes/ but is kept configurable for each computer. Will be
picked up by vim wiki plugin to enable wiki functionality for the
respective directory.
2019-06-12 14:18:46 +02:00
Marty Oehme abccdc7a62 Remove obsolete vim-zettel configuration 2019-06-12 13:34:25 +02:00
Marty Oehme f7b304966c Add full-text search to notes
Adds full-text search with CtrlSF vim plugin. Activated via
<leader>wf, to spell wiki-find (mirrors <leader>ww for wiki-index).

Optimizations can certainly be done.
2019-06-11 14:55:55 +02:00
Marty Oehme eb955beba1 Change wiki root to Nextcloud notes 2019-06-11 13:28:59 +02:00
Marty Oehme d3cc983eff add common vim bindings
* set up beggining/end of line with H/L
* set surround current word/visually selected word with <leader>"
* set text expansion for @@ marty.oehme@gmail.com - email
* set text expansion for ccopy - copyright notice
* set common typos autocorrection
2019-06-11 13:28:59 +02:00
Marty Oehme 54e31a85ac add uppercasing in vim 2019-06-11 13:27:00 +02:00
Marty Oehme 95d79cd39a add basic wiki and zettel structure 2019-06-11 13:27:00 +02:00
Marty Oehme eb57109565 Add abbreviations and quote surround to vimrc 2019-06-04 13:28:15 +02:00