aboutsummaryrefslogtreecommitdiff
path: root/files/.vimrc
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-04-28 21:47:06 +0500
committerAnton Bobov <anton@bobov.name>2024-05-18 00:34:29 +0500
commitca139d29e90360333cd857cee0a82c751ad7db2d (patch)
treeebedff8bb5e2d494c4acb212afe1af2dc424f0c1 /files/.vimrc
parent58819a0d1ee9acc9ca74a6fd9e700e6f703415f2 (diff)
[vim] Updates
Diffstat (limited to 'files/.vimrc')
-rw-r--r--files/.vimrc18
1 files changed, 15 insertions, 3 deletions
diff --git a/files/.vimrc b/files/.vimrc
index bfb5890..46c2992 100644
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -17,6 +17,8 @@ Plug 'tpope/vim-unimpaired'
" Intelligent date inc/dec
Plug 'tpope/vim-speeddating'
+" Heuristically set buffer options
+Plug 'tpope/vim-sleuth'
" Readline style insertion
"Plug 'tpope/vim-rsi'
" Show colors in CSS format
@@ -48,9 +50,6 @@ Plug 'scrooloose/nerdcommenter'
Plug 'raimondi/delimitmate'
" Syntax check and linting
Plug 'dense-analysis/ale'
-" Java LSP support for ALE
-" Required by https://github.com/georgewfraser/java-language-server
-Plug 'natebosch/vim-lsc'
" Text alignment commands
Plug 'godlygeek/tabular'
" Pasting in vim
@@ -90,6 +89,10 @@ Plug 'digitaltoad/vim-jade'
Plug 'jceb/vim-orgmode'
" EditorConfig plugin for Vim
Plug 'editorconfig/editorconfig-vim'
+" use CTRL+A/X to create increasing sequence of numbers or letters via visual mode
+Plug 'triglav/vim-visual-increment'
+" A Vim plugin that manages your tag files
+Plug 'ludovicchabant/vim-gutentags'
"Plug 'https://github.com/othree/xml.vim'
"Plug 'https://github.com/terryma/vim-multiple-cursors'
@@ -609,6 +612,7 @@ let g:templates_directory=$HOME . "/.vim/templates"
let g:ctrlp_map = "'p"
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_user_caching = 0
+let g:ctrlp_root_markers = ['.envrc']
" }}}
" Ledger {{{
@@ -624,6 +628,8 @@ augroup ft_ledger
au FileType ledger noremap <Leader>e :call ledger#entry()<CR>
au FileType ledger compiler ledger
au BufWritePost *.ledger silent! make | redraw! | cwindow
+ au FileType ledger command Ltoday :Ledger register --period today
+ au FileType ledger command Lweek :Ledger register --period 'last week'
augroup END
let g:ledger_main = '~/Dropbox/ledger/journal.ledger'
@@ -700,6 +706,12 @@ let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:local = 'postgres://postgres@localhost'
" }}}
+" gutentags {{{
+
+let g:gutentags_ctags_tagfile = '.tags'
+let g:gutentags_project_root = g:ctrlp_root_markers
+
+" }}}
" }}}
" Load custom local config {{{