diff --git a/.config/nvim/maps.vim b/.config/nvim/maps.vim index 8ec8ce3..4875168 100644 --- a/.config/nvim/maps.vim +++ b/.config/nvim/maps.vim @@ -165,10 +165,10 @@ nnoremap wf :execute(":call SearchNotes()") " vim-go mappings - will only activate in go files " most of this credit to https://hackernoon.com/my-neovim-setup-for-go-7f7b6e805876 " switch between test file and function -au Filetype go nnoremap ga (go-alternate-edit) +au Filetype go nnoremap ga (go-alternate-edit) " switch between test file and function - in a horizontal/vertical split -au Filetype go nnoremap gah (go-alternate-split) -au Filetype go nnoremap gav (go-alternate-vertical) +au Filetype go nnoremap gah (go-alternate-split) +au Filetype go nnoremap gav (go-alternate-vertical) " run a test (but run it as short version, in case tests are tagged " accordingly) au FileType go nnoremap :GoTest -short @@ -182,7 +182,7 @@ au FileType go nnoremap (go-def) " PLUGIN: wiki.vim " use wiki.vim to look through document outlines in fzf (only for note " directory atm) -nnoremap l :WikiFzfToc +nnoremap l :WikiFzfToc " overwrites some default mappings I don't use, or that interfere with my own " mappings TODO: currently this just assigns bogus shortcuts, since the plugin grumbles " when setting to an empty string @@ -205,9 +205,9 @@ let g:wiki_mappings_global = { " Mostly dealing with Prose writing from here on out " Format current Paragraph (esp useful in prose writing) -nnoremap q gqap -xnoremap q gq -nnoremap Q vapJgqap +nnoremap q gqap +xnoremap q gq +nnoremap Q vapJgqap " PLUGIN: GOYO " Enter distraction free prose mode with F11 @@ -221,6 +221,6 @@ inoremap @@ u:call fzf#run(fzf#wrap({ \ 'up': '25%', \ 'options': '--ansi --multi --prompt "Cite> "'})) " map cc to insert a complete citation at cursor -nnoremap cc :CiteRef +nnoremap cc :CiteRef " map cm to insert markdown prettified citation -nnoremap cm :CiteMarkdown +nnoremap cm :CiteMarkdown