diff options
author | Thomas Buckley-Houston | 2017-05-17 01:46:24 +0000 |
---|---|---|
committer | Thomas Buckley-Houston | 2017-05-17 01:46:24 +0000 |
commit | d86529a99fa0b5c0707e02119fd6a507c7bcb474 (patch) | |
tree | 3b1caa6cb4b3f7d9e5c475684a30be23a85ce0ba | |
parent | 46dccf06e4723ea8dbe3a71e213367647ae549f1 (diff) |
README notes about interoperability
-rw-r--r-- | README.md | 19 | ||||
-rw-r--r-- | plugin/novim-mode.vim | 1 |
2 files changed, 20 insertions, 0 deletions
@@ -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 `<C-O>` before the targeted command, for example; +```vim +" Ensure CtrlP doesn't get overridden by autocomplete in insertmode +inoremap <C-P> <C-O>:CtrlP<CR> +``` + +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 <C-L> <C-O>: +``` +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 <silent> <Home> <C-O>^ 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. |