562b7094aad5

Neovim tweaks
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Jul 2016 13:04:41 +0000
parents 4c02cacfa731
children 122228d53e7a
branches/tags (none)
files screen-256color.ti tmux/tmux.conf vim/vimrc

Changes

--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/screen-256color.ti	Mon Jul 18 13:04:41 2016 +0000
@@ -0,0 +1,27 @@
+#	Reconstructed via infocmp from file: /usr/share/terminfo/73/screen-256color
+screen-256color|GNU Screen with 256 colors,
+	am, km, mir, msgr, xenl,
+	colors#256, cols#80, it#8, lines#24, ncv#3, pairs#32767,
+	acsc=++\,\,--..00``aaffgghhiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
+	bel=^G, blink=\E[5m, bold=\E[1m, cbt=\E[Z, civis=\E[?25l,
+	clear=\E[H\E[J, cnorm=\E[34h\E[?25h, cr=^M,
+	csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
+	cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
+	cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\EM,
+	cvvis=\E[34l, dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM,
+	dl1=\E[M, ed=\E[J, el=\E[K, el1=\E[1K, enacs=\E(B\E)0,
+	flash=\Eg, home=\E[H, ht=^I, hts=\EH, ich=\E[%p1%d@,
+	il=\E[%p1%dL, il1=\E[L, ind=^J, initc@, is2=\E)0, kbs=\177,
+	kcbt=\E[Z, kcub1=\EOD, kcud1=\EOB, kcuf1=\EOC, kcuu1=\EOA,
+	kdch1=\E[3~, kend=\E[4~, kf1=\EOP, kf10=\E[21~,
+	kf11=\E[23~, kf12=\E[24~, kf2=\EOQ, kf3=\EOR, kf4=\EOS,
+	kf5=\E[15~, kf6=\E[17~, kf7=\E[18~, kf8=\E[19~, kf9=\E[20~,
+	khome=\E[1~, kich1=\E[2~, kmous=\E[M, knp=\E[6~, kpp=\E[5~,
+	nel=\EE, op=\E[39;49m, rc=\E8, rev=\E[7m, ri=\EM, rmacs=^O,
+	rmcup=\E[?1049l, rmir=\E[4l, rmkx=\E[?1l\E>, rmso=\E[23m,
+	rmul=\E[24m, rs2=\Ec\E[?1000l\E[?25h, sc=\E7,
+	setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
+	setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
+	sgr=\E[0%?%p6%t;1%;%?%p1%t;3%;%?%p2%t;4%;%?%p3%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;,
+	sgr0=\E[m\017, smacs=^N, smcup=\E[?1049h, smir=\E[4h,
+	smkx=\E[?1h\E=, smso=\E[3m, smul=\E[4m, tbc=\E[3g,
--- a/tmux/tmux.conf	Sun Jul 17 22:01:08 2016 +0000
+++ b/tmux/tmux.conf	Mon Jul 18 13:04:41 2016 +0000
@@ -121,3 +121,6 @@
 
 # Toggle synchronized panes for the current window
 bind S set synchronize-panes
+
+# Let neovim change the cursor shape
+set -g -a terminal-overrides ',*:Ss=\E[%p1%d q:Se=\E[2 q'
--- a/vim/vimrc	Sun Jul 17 22:01:08 2016 +0000
+++ b/vim/vimrc	Mon Jul 18 13:04:41 2016 +0000
@@ -2914,8 +2914,9 @@
 if has('nvim')
     tnoremap <Esc> <C-\><C-n>
     tnoremap <leader><esc> <esc>
-    nnoremap <bs> <c-w>h
+    " nnoremap <bs> <c-w>h
     let g:terminal_scrollback_buffer_size = 5000
+    let $NVIM_TUI_ENABLE_CURSOR_SHAPE=1
 endif
 
 " }}}