Browse Source

More modification. Fix globbing, add empty python config.

tags/vimscript-final
Taylor Bockman 2 years ago
parent
commit
b1118e8f47
  1. 7
      README.md
  2. 3
      conf/git.vim
  3. 3
      conf/langs/python.vim
  4. 2
      init.vim

7
README.md

@ -22,13 +22,16 @@ through the use of `vimux`.
## Structure ## Structure
* `conf`: Contains all configuration related files. * `conf`: Contains all configuration related files.
* `plugins.vim`: Plugin definitions. * `plugins.vim`: General plugin definitions.
* `keybinds.vim`: General keybinds such as leader key, etc. * `keybinds.vim`: General keybinds such as leader key, etc.
* `config.vim`: Dumping ground for general configurations. * `config.vim`: Dumping ground for general configurations.
* `ui.vim`: General UI configurations. * `ui.vim`: General UI configurations.
* `search.vim`: Search configurations (for example ctrl-p). * `search.vim`: Search configurations (for example ctrl-p).
* `git.vim`: Fugitive configurations. * `git.vim`: Fugitive configurations.
* `langs`: Language specific configurations and keybinds. * `langs`: Language specific configurations and keybinds. These files diverge
from the standard structure slightly. Plugins for each language can be defined
in these files, as well as keybinds and configurations. This was done to keep editing for
a single language to one place.
## Installation ## Installation

3
conf/git.vim

@ -1,7 +1,8 @@
" Fugitive Configuration " Fugitive Configuration
" Fugitive bindings " Fugitive bindings
nnoremap <Leader>gs :Git status<CR> nnoremap <Leader>gs :Git<CR> " This binding is a weird one.
" :Git<CR> is now the full status page.
nnoremap <Leader>gd :Git diff<CR> nnoremap <Leader>gd :Git diff<CR>
nnoremap <Leader>gb :Git blame<CR> nnoremap <Leader>gb :Git blame<CR>
nnoremap <Leader>gc :Git commit<CR> nnoremap <Leader>gc :Git commit<CR>

3
conf/langs/python.vim

@ -0,0 +1,3 @@
" Python configurations, plugins, etc.

2
init.vim

@ -9,7 +9,7 @@ exe 'source' g:nvim_config_root . '/conf/ui.vim'
exe 'source' g:nvim_config_root . '/conf/search.vim' exe 'source' g:nvim_config_root . '/conf/search.vim'
exe 'source' g:nvim_config_root . '/conf/git.vim' exe 'source' g:nvim_config_root . '/conf/git.vim'
let lang_configs = glob(g:nvim_config_root . '/conf/langs/*.vim') let lang_configs = glob(g:nvim_config_root . '/conf/langs/*.vim', 1, 1)
for lang_config in lang_configs for lang_config in lang_configs
exe 'source' lang_config exe 'source' lang_config

Loading…
Cancel
Save