Skip to content

Commit f83e17a

Browse files
committed
fix: vim bindings, add essay modes
1 parent 2c5857d commit f83e17a

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

CHANGELOG.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9+
## [0.7.5] - 2020-06-12
10+
### Fixed
11+
- Fixed Vim hiding style characters in markdown files.
12+
- Improved highlighting in Vim for matched parentheses.
13+
- Made Vim Alignment function more robust.
14+
- Improved FZF and Easy-Motion bindings in Vim.
15+
16+
### Added
17+
- Add :Essayon and :Essayoff commands to Vim.
18+
- Add write-good package for linting prose.
19+
- Add private to go config.
20+
921
## [0.7.4] - 2020-06-11
1022
### Fixed
1123
- Continued making tweaks to install script.
@@ -106,7 +118,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
106118
### Added
107119
- Created basic script for proof of concept.
108120

109-
[Unreleased]: https://github.com/adamtabrams/fig/compare/0.7.4...HEAD
121+
[Unreleased]: https://github.com/adamtabrams/fig/compare/0.7.5...HEAD
122+
[0.7.5]: https://github.com/adamtabrams/fig/compare/0.7.4...0.7.5
110123
[0.7.4]: https://github.com/adamtabrams/fig/compare/0.7.3...0.7.4
111124
[0.7.3]: https://github.com/adamtabrams/fig/compare/0.7.2...0.7.3
112125
[0.7.2]: https://github.com/adamtabrams/fig/compare/0.7.1...0.7.2

home/.config/nvim/init.vim

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -251,8 +251,8 @@ nnoremap <silent> gbd :bd<CR>
251251
nnoremap <silent> gbD :bd \| sbn<CR>
252252
253253
"--- Writing -------------------------------------
254-
cnoremap Essayon Goyo \| ALEDisableBuffer \| setlocal fo+=a tw=81 nospell
255-
cnoremap Essayoff Goyo! \| ALEEnableBuffer \| setlocal fo-=a tw=0 spell
254+
cnoremap <silent> Essayon Goyo \| ALEDisableBuffer \| setlocal fo+=a tw=81 nospell<CR>
255+
cnoremap <silent> Essayoff Goyo! \| ALEEnableBuffer \| setlocal fo-=a tw=0 spell<CR>
256256
257257
"--- Coding --------------------------------------
258258
nnoremap goq <c-w>j<c-w>q
@@ -268,11 +268,6 @@ nmap dsl dt{ds{
268268
nmap dsv dt<ds<
269269
nmap g' ysiW"
270270
271-
"--- Easy Motion ---------------------------------
272-
nmap gf <Plug>(easymotion-overwin-w)
273-
nmap gF <Plug>(easymotion-bd-wl)
274-
nmap g<c-f> <Plug>(easymotion-jumptoanywhere)
275-
276271
"--- Ale Linting ---------------------------------
277272
nnoremap <silent> gaa :ALEFirst<CR>
278273
nnoremap <silent> gan :ALENextWrap<CR>
@@ -318,14 +313,15 @@ let mapleader = ","
318313

319314
"--- Fzf -----------------------------------------
320315
let maplocalleader = "\<Space>"
321-
nnoremap <LocalLeader><LocalLeader> :Lines<CR>
316+
" nnoremap <LocalLeader><LocalLeader> :Lines<CR>
317+
nnoremap <LocalLeader>l :Lines<CR>
322318
nnoremap <LocalLeader>f :Files<CR>
323319
nnoremap <LocalLeader>g :GFiles<CR>
324320
nnoremap <LocalLeader>s :GFiles?<CR>
325321
nnoremap <LocalLeader>b :Buffers<CR>
326322
nnoremap <LocalLeader>w :Windows<CR>
327323
nnoremap <LocalLeader>r :Rg<CR>
328-
nnoremap <LocalLeader>l :History<CR>
324+
nnoremap <LocalLeader>h :History<CR>
329325
nnoremap <LocalLeader>m :Maps<CR>
330326
nnoremap <LocalLeader>t :Filetypes<CR>
331327
nnoremap <LocalLeader>T :set filetype=<CR>
@@ -335,3 +331,11 @@ nnoremap <LocalLeader>/ :BLines<CR>
335331
nnoremap <LocalLeader>' :Marks<CR>
336332
nnoremap <LocalLeader>: :Commands<CR>
337333
nnoremap <LocalLeader>? :Helptags<CR>
334+
335+
"--- Easy Motion ---------------------------------
336+
" nmap gf <Plug>(easymotion-overwin-w)
337+
" nmap gF <Plug>(easymotion-bd-wl)
338+
" nmap g<c-f> <Plug>(easymotion-jumptoanywhere)
339+
nmap <LocalLeader><LocalLeader> <Plug>(easymotion-overwin-w)
340+
nmap <LocalLeader>F <Plug>(easymotion-bd-wl)
341+
nmap <LocalLeader>A <Plug>(easymotion-jumptoanywhere)

0 commit comments

Comments
 (0)