diff --git a/nvim/keybindings.vimrc b/nvim/keybindings.vimrc index f882959..b4207ae 100644 --- a/nvim/keybindings.vimrc +++ b/nvim/keybindings.vimrc @@ -16,8 +16,16 @@ noremap :let @/ = "" " Spellcheck nnoremap S :setlocal spell! spelllang=en_us +" Easy motion to start/end of a line noremap H ^ noremap L $ + +" Toggle cursorline and relativelinenumber quickly noremap c :set cursorline! noremap n :set relativenumber! + +" Oops, forgot a semi-colon... noremap ; $a; + +" Search highlighted text in buffer +vnoremap // y/\V=escape(@",'/\') diff --git a/nvim/markdown.vimrc b/nvim/markdown.vimrc index 5e74649..0297d3c 100644 --- a/nvim/markdown.vimrc +++ b/nvim/markdown.vimrc @@ -7,11 +7,12 @@ let g:vim_markdown_strikethrough = 1 let g:vim_markdown_autowrite = 1 let g:vim_markdown_edit_url_in = 'tab' let g:vim_markdown_follow_anchor = 1 +let g:goyo_linenr = 1 augroup CustomMarkdown autocmd BufNewFile,BufRead *.md set filetype=markdown - autocmd FileType markdown Goyo - autocmd FileType markdown setlocal linebreak - autocmd FileType markdown setlocal nocursorline - autocmd FileType markdown setlocal nocursorcolumn + autocmd BufNewFile,BufRead *.md Goyo + autocmd BufNewFile,BufRead *.md setlocal linebreak + autocmd BufNewFile,BufRead *.md setlocal nocursorline + autocmd BufNewFile,BufRead *.md setlocal nocursorcolumn augroup END