Compare commits

...

3 Commits

Author SHA1 Message Date
3822bfed91 keybinding updates
* `<leader><leader` to open `:Files`
* `<leader>q`       to quit
* `<leader><space>` to clear highlights
2024-02-23 16:45:38 -05:00
e64fc7a335 Added new words to custom dictionary 2024-02-23 16:45:00 -05:00
fab299fa13 .vimrc - set folds
Set folds open by default in markdown files
2024-02-23 13:42:27 -05:00
4 changed files with 31 additions and 15 deletions

View File

@@ -1 +1,10 @@
Syncthing
Strongsville
Cinemark
Kubernetes
Ansible
Applebee's
OverDrive
hemangioma
Portainer
TiddlyWiki

Binary file not shown.

View File

@@ -19,7 +19,7 @@ A cheat sheet for my vim customizations
## Highlights
* `<leader><leader>` - turn off search highlight
* `<leader><space>` - turn off search highlight
* `<Leader>C` - toggle row/column cursor
## Buffers
@@ -41,6 +41,7 @@ A cheat sheet for my vim customizations
## FZF
* `<leader>f` - open FZF files
* `<leader><leader>` - open FZF files
* `<leader>b` - open FZF buffers
## Editing

34
.vimrc
View File

@@ -4,7 +4,7 @@
set nocompatible " be iMproved, required
set number " turn on line numbers
set relativenumber " lines are numbered relative to current line
set scrolloff=8 " number of lines to keep above and below the cursor
set scrolloff=10 " number of lines to keep above and below the cursor
set belloff=all " no sound/flash on errors
set autoread " set to auto read when a file is changed from the outside
@@ -107,13 +107,11 @@ Plug 'dense-analysis/ale'
Plug 'godlygeek/tabular'
Plug 'preservim/vim-markdown'
call plug#end()
" ---------------------------------------------------------------------------------------------------------------------
" ==> Plugin Options
" Options and overrides for installed plugins
"
" Vim Markdown
" Set default conceallevel to hide links and some formatting
@@ -123,11 +121,15 @@ let g:vim_markdown_strikethrough = 1
" follow anchors - allow <ge> to follow anchors just like links
let g:vim_markdown_follow_anchor = 1
" multi-line bullets in markdown
" r - Continue comments when pressing Enter
" n - Recognize numbered lists
" t - autowrap lines using text width value
" [Reference](https://vimdoc.sourceforge.net/htmldoc/change.html#fo-table)
" j - remove a comment leader when joining lines.
" l - long lines are not broken in insert mode
" n - Recognize numbered lists
" r - Continue comments when pressing Enter
" t - autowrap lines using text width value
autocmd FileType markdown set formatoptions=jlnrt
" Open folds by default
au BufWinEnter * normal zR
" ---------------------------------------------------------------------------------------------------------------------
" ==> Colors
@@ -169,10 +171,10 @@ set statusline+=\ %P " percent through file
" => Keymaps: Highlights
" <leader><leader> to turn off search highlight
nnoremap <leader><leader> :nohls <enter>
nnoremap <leader><space> :nohls <enter>
" <leader>C to toggle row/column highlight
nnoremap <Leader>C :set cursorline! cursorcolumn!<CR>
nnoremap <leader>C :set cursorline! cursorcolumn!<CR>
" ---------------------------------------------------------------------------------------------------------------------
" ==> Keymaps: Buffers & Panes
@@ -193,16 +195,19 @@ nnoremap <C-K> <C-W><C-K>
map <leader>b :Buffers<CR>
" <leader>s to save buffer
nnoremap <Leader>s :w <enter>
nnoremap <leader>s :w <enter>
" <leader>q to quit vim
nnoremap <leader>q :q <enter>
" <leader>c to close buffer
nnoremap <Leader>c :bd <enter>
nnoremap <leader>c :bd <enter>
" <leader>a to abandon buffer
nnoremap <Leader>a :bd! <enter>
nnoremap <leader>a :bd! <enter>
" <leader>x to bring up the copy buffer
noremap <Leader>x "+
noremap <leader>x "+
" <F5> to refresh buffer
nnoremap <F5> <C-R>:checktime <CR>
@@ -210,8 +215,9 @@ nnoremap <F5> <C-R>:checktime <CR>
" ---------------------------------------------------------------------------------------------------------------------
" ==> Keymaps
" <leader> f to open FZF files
map <Leader>f :Files<CR>
" <leader>f to open FZF files
map <leader>f :Files<CR>
map <leader><leader> :Files<CR>
" <leader>r to open registers
map <leader>r :registers<CR>