From c0ec97957e9f60bf82e836cc6fcc0ae7227a6f8a Mon Sep 17 00:00:00 2001 From: arnaucube Date: Sat, 1 Dec 2018 15:07:17 +0100 Subject: [PATCH] nvim: tmux colors, jk mapping for esc, set cursorline --- init.vim | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/init.vim b/init.vim index 361e965..365a47f 100644 --- a/init.vim +++ b/init.vim @@ -1,6 +1,3 @@ -"" github.com/arnaucube/configs - - call plug#begin(expand('~/.config/nvim/plugged')) Plug 'scrooloose/nerdtree' @@ -52,6 +49,7 @@ set number set title set titlestring=nvim-%F set t_Co=256 +set cursorline " colorscheme one " set background=dark @@ -71,10 +69,19 @@ if (empty($TMUX)) set termguicolors endif endif + set background=dark " for the dark version " set background=light " for the light version -colorscheme one +" colorscheme one +colorscheme molokai +if $COLORTERM == 'gnome-terminal' + set term=gnome-256color +else + if $TERM == 'xterm' + set term=xterm-256color + endif +endif set statusline=%F%m%r%h%w%=(%{&ff}/%Y)\ (line\ %l\/%L,\ col\ %c)\ @@ -159,3 +166,6 @@ let g:go_highlight_space_tab_error = 0 let g:go_highlight_array_whitespace_error = 0 let g:go_highlight_trailing_whitespace_error = 0 let g:go_highlight_extra_types = 1 + +"" esc mapping +inoremap jk