From d86529a99fa0b5c0707e02119fd6a507c7bcb474 Mon Sep 17 00:00:00 2001 From: Thomas Buckley-Houston Date: Wed, 17 May 2017 08:46:24 +0700 Subject: README notes about interoperability --- README.md | 19 +++++++++++++++++++ plugin/novim-mode.vim | 1 + 2 files changed, 20 insertions(+) diff --git a/README.md b/README.md index 5a4740f..98bb17a 100644 --- a/README.md +++ b/README.md @@ -36,3 +36,22 @@ Most keybindings should work as you might expect from, say Atom or Sublime Text; * `ALT+UP/DOWN`: Move current line up/down * `CTRL+Q`: Exit window/tab/split/quickfix/etc +### Interoperability + +You may wish to adjust the order in which this plugin is loaded as it overrides mappings. + +When adding a new binding that needs Normal mode, you should use `` before the targeted command, for example; +```vim +" Ensure CtrlP doesn't get overridden by autocomplete in insertmode +inoremap :CtrlP +``` + +For easily navigating splits/windows/etc you will want to create your own mappings. Personally, I'm currently using [vim-tmux-navigator](https://github.com/christoomey/vim-tmux-navigator) with my own custom mappings to `CTRL+ARROW`. + +To access the Vim command prompt, I currently have this mapping; +```vim +inoremap : +``` +It is of course useful for many things. For example search and replace. + +Perhaps these mappings could be added as configurable optionals one day. diff --git a/plugin/novim-mode.vim b/plugin/novim-mode.vim index 86536b1..5df9bba 100644 --- a/plugin/novim-mode.vim +++ b/plugin/novim-mode.vim @@ -84,6 +84,7 @@ inoremap ^ au BufNewFile,BufRead *.txt,*.md,*.markdown setlocal linebreak spell " Make arrow keys move through wrapped lines " TODO: +" * Make this feature optional. " * Make End key move to end of current wrapped piece of line. " * Scroll window 1 wrapped soft line at a time rather an entire block of wrapped " lines. -- cgit v1.2.3-70-g09d2