aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/edit.h
diff options
context:
space:
mode:
authorNicolas Hillegeer <nicolas@hillegeer.com>2014-07-12 14:28:58 +0200
committerNicolas Hillegeer <nicolas@hillegeer.com>2014-07-12 14:28:58 +0200
commit5d53c51fae483b9a4cbb3636932f7d753d67c384 (patch)
tree87486e0f97b4252a6eb954ace05c47465daa2dfe /src/nvim/edit.h
parent77db0b2bba97603e59614bb95d6eab76e42f9288 (diff)
parenta32df5e734460dfdf9bc85aebf5252d64fcb99f5 (diff)
downloadrneovim-5d53c51fae483b9a4cbb3636932f7d753d67c384.tar.gz
rneovim-5d53c51fae483b9a4cbb3636932f7d753d67c384.tar.bz2
rneovim-5d53c51fae483b9a4cbb3636932f7d753d67c384.zip
Merge #837 'Move defines from vim.h - phase2'
Diffstat (limited to 'src/nvim/edit.h')
-rw-r--r--src/nvim/edit.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/nvim/edit.h b/src/nvim/edit.h
index 52b8ae923b..0289b2c3a6 100644
--- a/src/nvim/edit.h
+++ b/src/nvim/edit.h
@@ -14,6 +14,34 @@
typedef int (*IndentGetter)(void);
+/* Values for in_cinkeys() */
+#define KEY_OPEN_FORW 0x101
+#define KEY_OPEN_BACK 0x102
+#define KEY_COMPLETE 0x103 /* end of completion */
+
+/* Values for change_indent() */
+#define INDENT_SET 1 /* set indent */
+#define INDENT_INC 2 /* increase indent */
+#define INDENT_DEC 3 /* decrease indent */
+
+/* flags for beginline() */
+#define BL_WHITE 1 /* cursor on first non-white in the line */
+#define BL_SOL 2 /* use 'sol' option */
+#define BL_FIX 4 /* don't leave cursor on a NUL */
+
+/* flags for insertchar() */
+#define INSCHAR_FORMAT 1 /* force formatting */
+#define INSCHAR_DO_COM 2 /* format comments */
+#define INSCHAR_CTRLV 4 /* char typed just after CTRL-V */
+#define INSCHAR_NO_FEX 8 /* don't use 'formatexpr' */
+#define INSCHAR_COM_LIST 16 /* format comments with list/2nd line indent */
+
+/* direction for nv_mousescroll() and ins_mousescroll() */
+#define MSCR_DOWN 0 /* DOWN must be FALSE */
+#define MSCR_UP 1
+#define MSCR_LEFT -1
+#define MSCR_RIGHT -2
+
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "edit.h.generated.h"
#endif