There is my vim configuration.
Configuration files are in the configs/ directory. I divided all my configuration files on two groups: common and plugins. In common/ directory are the files that controls common behavior of VIM. In plugins/ are configuration files for all installed plugins. Both of these directories are included file conf.vimrc. This file determine which configurations should be loaded.
-
common.vimrc
This file included common settings of VIM such as:
- Enabling filetype detection
- Configuration of files encryption
- Search settings
- and etc.
-
common-functions.vimrc
This file included some VimScript functions that can be useful for VIM configuring.
-
file-association.vimrc
Here is determined settings for associating different filename extensions with special filetype.
-
key-bindings.vimrc
In this file are VIM key bindings. I remapped leader key to
,
. -
statusline.vimrc
This file included my configuration for status line. I don't like to use something like powerline or airline because it increases launch time of VIM.
This directory is included all plugin configurations. Below it is some links where I have found information about some plugins configuration.
For configuration I used this article: https://coderwall.com/p/s1i5pw/latex-with-vim
- Global YCM Config: https://jonasdevlieghere.com/a-better-youcompleteme-config/
Sometimes it is necessary to add some changes to vim configuration without
committing it to git. For example, I'd like that calendar will be synced with
Google Calendar only on my personal machine. You can create ~/.vimrc.local
and
add your local configuration to this file. Example is below:
let g:calendar_google_calendar = 1 " Use Google Calendar
let g:calendar_google_task = 1 " Allow using Google task
let g:vimconf_transparent_bg = 1 " Enable transparent background
Had a problem with installation YouCompleteMe and got the following error:
$ xz clang+llvm-4.0.0-x86_64-apple-darwin.tar.xz
dyld: Library not loaded: /Library/Frameworks/Mono.framework/Versions/4.0.5/lib/libintl.8.dylib
Referenced from: /Applications/Unity/MonoDevelop.app/Contents/Frameworks/Mono.framework/Versions/Current/bin/xz
Reason: image not found
The solution is: remove this binary file and install xz
Found fix for vim background here
Status line configuration I found here and here.
Information about colors I found here and here.
https://github.com/severin-lemaignan/vim-minimap
https://github.com/jaxbot/semantic-highlight.vim
https://github.com/junegunn/limelight.vim
https://github.com/python-mode/python-mode
https://github.com/metakirby5/codi.vim
https://github.com/w0rp/ale
https://github.com/devjoe/vim-codequery
https://github.com/rhysd/committia.vim
https://opensource.com/article/17/2/vim-plugins-writers
https://github.com/rhysd/vim-grammarous
https://github.com/reedes/vim-wordy
https://github.com/dbmrq/vim-ditto