From 69ab5072f1b1925e92efee62108e0b35f07835c1 Mon Sep 17 00:00:00 2001 From: Jeff LANCE Date: Thu, 7 May 2020 19:44:35 +0200 Subject: [PATCH] Up --- vim/vim/functions.vim | 76 +++++++--- vim/vim/keybindings.vim | 179 ++++++++++++++++++---- vim/vim/plug.vim | 93 ++++++++---- vim/vimrc | 323 +++++++++++++++++++++++++++------------- 4 files changed, 498 insertions(+), 173 deletions(-) diff --git a/vim/vim/functions.vim b/vim/vim/functions.vim index e5c65f7..73900d2 100644 --- a/vim/vim/functions.vim +++ b/vim/vim/functions.vim @@ -1,3 +1,9 @@ +" File : functions.vim +" Author : Jeff LANCE +" Date : 15.04.2015 +" Last Modified Date: 28.04.2020 +" Last Modified By : Jeff LANCE + """"""""""""""""""""""""""""""""""""""""""""""""""""""" " _____ _ _ _ _ ____ _____ ___ ___ _ _ ____ " | ___| | | | \ | |/ ___|_ _|_ _/ _ \| \ | / ___| @@ -9,28 +15,64 @@ " Rename current file function! RenameFile() - let old_name = expand('%') - let new_name = input('New file name: ', expand('%'), 'file') - if new_name != '' && new_name != old_name - exec ':saveas ' . new_name - exec ':silent !rm ' . old_name - redraw! - endif + let old_name = expand('%') + let new_name = input('New file name: ', expand('%'), 'file') + if new_name != '' && new_name != old_name + exec ':saveas ' . new_name + exec ':silent !rm ' . old_name + redraw! + endif endfunction -map n :call RenameFile() " Window movement shortcuts " move to the window in the direction shown, or create a new window function! WinMove(key) - let t:curwin = winnr() - exec "wincmd ".a:key - if (t:curwin == winnr()) - if (match(a:key,'[jk]')) - wincmd v - else - wincmd s - endif - exec "wincmd ".a:key + let t:curwin = winnr() + exec "wincmd ".a:key + if (t:curwin == winnr()) + if (match(a:key,'[jk]')) + wincmd v + else + wincmd s endif + exec "wincmd ".a:key + endif endfunction + +" Count buffers +function! CountBuf() + let bufcount = 0 + for buf in getbufinfo() + let bufcount += 1 + endfor + return bufcount +endfunction + +" Test if current buffer is netrw buffer +function! IsNetrw() + if (getbufvar('%', '&filetype') == "netrw" || bufname('%') =~ 'NetrwTreeListing') + return 1 + endif + return 0 +endfunction + +" Test if current buffer is empty +function! IsEmptyBuf() + if (bufname('%') == '') + return 1 + endif + return 0 +endfunction + +" Close current buffer +" If empty return to Startify +function! BufClose() + if (IsEmptyBuf() || IsNetrw()) + Startify + else + bwipeout + endif +endfunction + + diff --git a/vim/vim/keybindings.vim b/vim/vim/keybindings.vim index 3d3d4a5..6eadc8c 100644 --- a/vim/vim/keybindings.vim +++ b/vim/vim/keybindings.vim @@ -1,3 +1,9 @@ +" File : keybindings.vim +" Author : Jeff LANCE +" Date : 15.04.2015 +" Last Modified Date: 28.04.2020 +" Last Modified By : Jeff LANCE + """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " _ _________ ______ ___ _ _ ____ ___ _ _ ____ ____ " | |/ / ____\ \ / / __ )_ _| \ | | _ \_ _| \ | |/ ___/ ___| @@ -10,56 +16,179 @@ " " Custom " -" + " Disable highlights when you press : map :noh -" -" Tabs -" -set hidden -nnoremap :tabclose -nnoremap :tabe -nnoremap :tabnext -nnoremap :tabprevious +" Enable folding with the spacebar +nnoremap za +" Source current file +map s :echom 'Source file' :so % + +" Two semicolons to escape +" imap ;; " -" Functions +" Buffers " +command! -bang -nargs=? -complete=dir Files + \ call fzf#vim#files( + \ , + \ fzf#vim#with_preview( + \ {'options': ['--layout=reverse', '--info=inline']} + \ ), + \ 0 + \ ) +map :echom 'Close buffer' :call BufClose() +map :echom 'Force close buffer' bwipeout! +map :e +map :enew +map :bn +map :bp -" Renaming -map rn :call RenameFile() - -" Windows move +" +" Windows +" map :call WinMove('h') map :call WinMove('j') map :call WinMove('k') map :call WinMove('l') " -" NERDTree +" Tabs " -" Trigger configuration -map :NERDTreeToggle -map nb :NERDTreeFromBookmark -map nf :NERDTreeFind +map tn :tabnew +map tc :tabclose +map :tabnext +map :tabnext + +" +" Defx +" +map :Defx + +function! s:defx_toggle_tree() abort + " Open current file, or toggle directory expand/collapse + if defx#is_directory() + return defx#do_action('open_or_close_tree') + endif + return defx#do_action('drop') +endfunction + +autocmd FileType defx call s:defx_my_settings() +function! s:defx_my_settings() abort + " Define mappings + " nnoremap defx#do_action('drop') + nnoremap + \ defx#is_directory() ? + \ defx#do_action('open_directory') : + \ defx#do_action('multi', ['drop', 'quit']) + nnoremap c + \ defx#do_action('copy') + nnoremap m + \ defx#do_action('move') + nnoremap p + \ defx#do_action('paste') + nnoremap l + \ defx#do_action('open') + nnoremap E + \ defx#do_action('open', 'vsplit') + nnoremap P + \ defx#do_action('open', 'pedit') + nnoremap o + \ defx#do_action('open_or_close_tree') + nnoremap K + \ defx#do_action('new_directory') + nnoremap N + \ defx#do_action('new_file') + nnoremap M + \ defx#do_action('new_multiple_files') + nnoremap C + \ defx#do_action('toggle_columns', + \ 'mark:indent:icon:filename:type:size:time') + nnoremap S + \ defx#do_action('toggle_sort', 'time') + nnoremap d + \ defx#do_action('remove') + nnoremap r + \ defx#do_action('rename') + nnoremap ! + \ defx#do_action('execute_command') + nnoremap x + \ defx#do_action('execute_system') + nnoremap yy + \ defx#do_action('yank_path') + nnoremap . + \ defx#do_action('toggle_ignored_files') + nnoremap ; + \ defx#do_action('repeat') + nnoremap h + \ defx#do_action('cd', ['..']) + nnoremap ~ + \ defx#do_action('cd') + nnoremap q + \ defx#do_action('quit') + nnoremap + \ defx#do_action('toggle_select') . 'j' + nnoremap * + \ defx#do_action('toggle_select_all') + nnoremap j + \ line('.') == line('$') ? 'gg' : 'j' + nnoremap k + \ line('.') == 1 ? 'G' : 'k' + nnoremap + \ defx#do_action('redraw') + nnoremap + \ defx#do_action('print') + nnoremap cd + \ defx#do_action('change_vim_cwd') +endfunction " -" CtrlP +" FZF " -map :CtrlPMixed +map :Files + +" +" Header +" +map :AddHeader + +" +" REPL +" +nnoremap rp :REPLToggle +autocmd Filetype python nnoremap :REPLDebugStopAtCurrentLine +autocmd Filetype python nnoremap :REPLPDBN +autocmd Filetype python nnoremap :REPLPDBS " " Vimroom " nnoremap z :Goyo - " " Vimux " -map vp :VimuxPromptCommand -map vl :VimuxRunLastCommand -map vz :VimuxZoomRunner +map vp :VimuxPromptCommand +" map vr :VimuxRunCommand +" map vo :VimuxOpenRunner + +" +" Functions +" + +" Renaming +map r :call RenameFile() + +" Open file under cursor +map o :call GotoFile("") + +map ' ciw''P + + + + + diff --git a/vim/vim/plug.vim b/vim/vim/plug.vim index 8ff4bc0..f0a1a5d 100644 --- a/vim/vim/plug.vim +++ b/vim/vim/plug.vim @@ -1,3 +1,9 @@ +" File : plug.vim +" Author : Jeff LANCE +" Date : 15.04.2015 +" Last Modified Date: 28.04.2020 +" Last Modified By : Jeff LANCE + """""""""""""""""""""""""""""""""""""""""""""""" " __ _____ __ __ ____ _ _ _ ____ " \ \ / /_ _| \/ | | _ \| | | | | |/ ___| @@ -11,7 +17,7 @@ if empty(glob('~/.vim/autoload/plug.vim')) silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim - autocmd VimEnter * PlugInstall --sync | source $MYVIMRC + autocmd VimEnter * PlugInstall --sync | source ${MYVIMRC} endif " Specify a directory for plugins @@ -19,46 +25,71 @@ endif " - Avoid using standard Vim directory names like 'plugin' call plug#begin('~/.vim/plugged') - -Plug 'mhinz/vim-startify', { 'branch': 'center' } " Startscreen -Plug 'scrooloose/nerdtree' " File explorer +" Startup sceen +Plug 'mhinz/vim-startify' +" Deoplete +if using_neovim + Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } + Plug 'Shougo/defx.nvim', { 'do': ':UpdateRemotePlugins' } + Plug 'kristijanhusak/defx-icons' +else + Plug 'Shougo/deoplete.nvim' + Plug 'roxma/nvim-yarp' + Plug 'roxma/vim-hug-neovim-rpc' + Plug 'Shougo/defx.nvim' + Plug 'kristijanhusak/defx-icons' +endif +" Buffer exploration +Plug 'ap/vim-buftabline', { 'as': 'buftabline' } +" Folding +Plug 'Konfekt/FastFold' +" Markdown +Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } +" Git integration +Plug 'tpope/vim-fugitive' +" Quoting, etc... +Plug 'tpope/vim-surround' +" Commenting shortcuts +Plug 'tpope/vim-commentary' +" Show hex codes as colors +Plug 'chrisbra/Colorizer' +" Put an header in file +Plug 'alpertuna/vim-header' +" Latex support +Plug 'lervag/vimtex' +" Open file +Plug 'amix/open_file_under_cursor.vim' +" Python autocompletion +Plug 'deoplete-plugins/deoplete-jedi' +" Completion from other opened files +Plug 'Shougo/context_filetype.vim' +" Linting +Plug 'dense-analysis/ale' +" REPL for vim +Plug 'sillybun/vim-repl' +" Auto-close char feature +Plug 'Townk/vim-autoclose' +" Indexed search +Plug 'vim-scripts/IndexedSearch' +" Git/mercurial/others diff icons on the side of the file lines +Plug 'mhinz/vim-signify' +" Fuzzy finder +Plug 'junegunn/fzf' Plug 'junegunn/fzf.vim' -Plug 'plasticboy/vim-markdown', { 'for': 'markdown' } " Markdown -Plug 'tpope/vim-fugitive' " Git -Plug 'tpope/vim-surround' " Quotes, etc... -Plug 'ryanoasis/vim-devicons' " Icons -Plug 'tpope/vim-commentary' " Commenting -Plug 'amix/open_file_under_cursor.vim' " open file -Plug 'ctrlpvim/ctrlp.vim' " Fzf, buffer -Plug 'dense-analysis/ale' " Linting -Plug 'ap/vim-css-color' " Color display -Plug 'vim-latex/vim-latex' " LaTeX support - " Distraction-free writing Plug 'junegunn/goyo.vim' Plug 'junegunn/limelight.vim' - -" Tabline +" Status line Plug 'itchyny/lightline.vim' -Plug 'ap/vim-buftabline', { 'as': 'buftabline' } - " Tmux Plug 'edkolev/tmuxline.vim' Plug 'benmills/vimux' - " Colorschemes -Plug 'kyoz/purify', { 'as': 'purify', 'rtp': 'vim' } -Plug 'flazz/vim-colorschemes' -Plug 'jcherven/jummidark.vim' -Plug 'arzg/vim-colors-xcode' -Plug 'nanotech/jellybeans.vim' -Plug 'jdsimcoe/abstract.vim' -Plug 'rainglow/vim' +Plug 'nanotech/jellybeans.vim', { 'as': 'jellybeans' } +Plug 'jdsimcoe/abstract.vim', { 'as': 'abstract' } Plug 'xero/sourcerer.vim', { 'as': 'sourcerer' } -Plug 'romainl/apprentice', { 'as': 'apprentice' } -Plug 'dracula/vim', { 'as': 'dracula' } -Plug 'sainnhe/edge', { 'as': 'edge' } -Plug 'kyoto-shift/film-noir', { 'as': 'film-noir' } +" Customization +Plug 'ryanoasis/vim-devicons' " required ! diff --git a/vim/vimrc b/vim/vimrc index 87e6b96..a6a153e 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -1,3 +1,9 @@ +" File : vimrc +" Author : Jeff LANCE +" Date : 15.04.2015 +" Last Modified Date: 28.04.2020 +" Last Modified By : Jeff LANCE + """""""""""""""""""""""""""""""""""""""""""""" " " ____ _____ _ _ _____ ____ _ _ @@ -9,10 +15,20 @@ " """""""""""""""""""""""""""""""""""""""""""""""" +" some useful vars +let using_neovim = has('nvim') +let using_vim = !using_neovim + + set nocompatible " be iMproved, required -filetype off " required +filetype plugin indent on " viminfo configuration -set viminfo='100,n$HOME/.vim/files/info/viminfo +if using_vim + set viminfo='100,n$HOME/.vim/files/info/viminfo +endif +set backupdir=$HOME/.vim/backup +set directory=$HOME/.vim/tmp +set noswapfile " UTF-8 set encoding=utf8 @@ -21,23 +37,34 @@ set encoding=utf8 syntax on set synmaxcol=512 -"" Set to auto read when a file is changed from the outside +" Set to auto read when a file is changed from the outside set autoread -"au FocusGained,BufEnter * checktime " With a map leader it's possible to do extra key combinations " like w saves the current file -let mapleader = "," +let mapleader = ";" " Fast saving nmap w :w! " Allow saving of files as sudo when I forgot to start vim using sudo. -command! W execute 'w !sudo tee % > /dev/null %' +" ca w!! w !sudo tee "%" " A buffer becomes hidden when it is abandoned set hidden +" Use system clipboard +set clipboard=unnamedplus + +" Mouse +set mouse=a + +" Auto change dir to current buffer dir +autocmd BufEnter * silent! lcd %:p:h + +" Delete extra blank line at the end of file +" autocmd BufWritePre *.py normal m`:%s/\s\+$//e`` + """""""""""""""""""""""""""""""""""""""""""""""""""""" @@ -49,9 +76,15 @@ set hidden " """""""""""""""""""""""""""""""""""""""""""""""""""""" +" To use fancy symbols wherever possible, +let fancy_symbols_enabled = 1 + " Font config set guifont=Inconsolata\ Nerd\ Font\ Mono\ 11 +" Remove ugly vertical lines on window division +set fillchars+=vert:\ + " set linespace=5 @@ -66,16 +99,32 @@ set number set wrap " Tab control -set noexpandtab " tabs ftw -set smarttab " tab respects 'tabstop', 'shiftwidth', and 'softtabstop' -set tabstop=4 " the visible width of tabs -set softtabstop=4 " edit as if the tabs are 4 characters wide -set shiftwidth=4 " number of spaces to use for indent and unindent -set shiftround " round indent to a multiple of 'shiftwidth' +set expandtab +set tabstop=2 +set softtabstop=2 +set shiftwidth=2 +set textwidth=80 +set autoindent +set smartindent +" python +au BufNewFile,BufRead *.py + \ set tabstop=4 + \ set softtabstop=4 + \ set shiftwidth=4 + \ set textwidth=79 + \ set expandtab + \ set autoindent + \ set fileformat=unix +" js, html, css +au BufNewFile,BufRead *.js, *.html, *.css + \ set noexpandtab + \ set tabstop=2 + \ set softtabstop=2 + \ set shiftwidth=2 -" Configure backspace so it acts as it should act -set backspace=indent,eol,start -set whichwrap+=<,>,h,l +" Let the cursor traverse to the previous or following line when at the or the +" end of a line +set whichwrap=b,s,<,>,[,] " Search set ignorecase " Ignore case when searching @@ -95,18 +144,16 @@ set lazyredraw " For regular expressions turn magic on set magic -" Auto indent -set ai - -" Smart indent -set si - " Disable scrollbars (real hackers don't use scrollbars for navigation!) set guioptions-=r set guioptions-=R set guioptions-=l set guioptions-=L +" Spell checking +set spell +set spelllang=fr,en + """"""""""""""""""""""""""""""""""""""""""" @@ -121,29 +168,24 @@ set guioptions-=L " Installing the Plug plugin manager source $HOME/.vim/plug.vim -" Start NERDTree if no file is pass as arg +" Start startify if no arg autocmd StdinReadPre * let s:std_in=1 autocmd VimEnter * - \ if argc() == 0 - \ && !exists("s:std_in") - \ | Startify - \ | NERDTree - \ | endif + \ if argc() == 0 + \ && !exists("s:std_in") + \ | Startify + \ | endif -" Close vim if the only window left open is a NERDTree -autocmd BufEnter * - \ if (winnr("$") == 1 - \ && exists("b:NERDTree") - \ && b:NERDTree.isTabTree()) - \ | q - \ | endif +" needed so deoplete can auto select the first suggestion +set completeopt+=noinsert +" comment this line to enable autocompletion preview window +" (displays documentation related to the selected completion option) +" disabled by default because preview makes the window flicker +" set completeopt-=preview -" If more than one window and previous buffer was NERDTree, go back to it. -autocmd BufEnter * - \ if bufname('#') =~# "^NERD_tree_" - \ && winnr('$') > 1 - \ | b# - \ | endif +" autocompletion of files and commands behaves like shell +" (complete only the common part, list the options that match) +set wildmode=list:longest @@ -174,8 +216,9 @@ endif """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" let base16colorspace=256 " Access colors present in 256 colorspace" -" set background=dark -colorscheme abstract +set background=dark +" colorscheme abstract +colorscheme sourcerer @@ -190,88 +233,166 @@ colorscheme abstract """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " -" Markdown review +" BufTabLine " -let vim_markdown_preview_toggle=1 -let vim_markdown_preview_toggle=2 -let vim_markdown_preview_browser='x-www-browser' +hi TabLineSel ctermbg=green ctermfg=black guibg=green guifg=black +hi PmenuSel ctermbg=white ctermfg=white guibg=white guifg=white " -" NERDTree +" Defx " -let g:NERDTreeQuitOnOpen=0 " close NERDTree after a file is opened +" Set appearance +call defx#custom#option( + \ '_', { + \ 'winwidth': 40, + \ 'split': 'vertical', + \ 'direction': 'botright', + \ 'show_ignored_files': 0, + \ 'buffer_name': 'defxplorer', + \ 'toggle': 1, + \ 'columns': 'icon:indent:icons:filename', + \ 'resume': 1, + \ } + \ ) + +call defx#custom#column( + \ 'icon', { + \ 'directory_icon': '▸', + \ 'opened_icon': '▾', + \ } + \ ) + +call defx#custom#column( + \ 'mark', { + \ 'readonly_icon': '✗', + \ 'selected_icon': '✓', + \ } + \ ) " -" Startify +" Deoplete " -" let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())' +if using_neovim + let g:deoplete#enable_at_startup = 1 +endif -" let g:startify_session_dir = '~/.vim/session' +" +" FZF +" +" This is the default extra key bindings +let g:fzf_action = { + \ 'enter': 'e', + \ 'ctrl-h': 'split', + \ 'ctrl-v': 'vsplit' + \ } +" Preview window +let g:fzf_preview_window = 'right:60%' +if has('nvim') && !exists('g:fzf_layout') + autocmd! FileType fzf + autocmd FileType fzf set laststatus=0 noshowmode noruler + \| autocmd BufLeave set laststatus=2 showmode ruler +endif -" let g:startify_lists = [ -" \ { 'type': 'files', 'header': ['RÉCENTS'] }, -" \ { 'type': 'sessions', 'header': ['SESSIONS'] }, -" \ { 'type': 'bookmarks', 'header': ['MARQUES-PAGES'] }, -" \ ] - -" let g:startify_enable_special = 0 -" let g:startify_files_number = 5 - -" let g:startify_bookmarks = [ -" \ '~/.vimrc', -" \ '~/.vim/keybindings.vim', -" \ '~/.vim/plug.vim', -" \ '~/.vim/scripts.vim', -" \ '~/Projets/latex/latex-homework' -" \ ] +" +" Header +" +let g:header_field_author = 'Jeff LANCE' +let g:header_field_author_email = 'email@jefflance.me' +let g:header_auto_add_header = 0 " " Lightline " let g:lightline = { - \ 'colorscheme': 'jellybeans', - \ 'active': { - \ 'left': [ [ 'mode', 'paste' ], - \ [ 'readonly', 'filename', 'modified' ] ], - \ 'right': [ [ 'lineinfo' ], - \ [ 'percent' ], - \ [ 'fileformat', 'fileencoding', 'filetype', 'kitestatus' ] ], - \ }, - \ 'component': { - \ 'readonly': '%{&readonly?"|":""}', - \ 'kitestatus': '%{kite#statusline()}', - \ }, + \ 'colorscheme': 'jellybeans', + \ 'active': { + \ 'left': [ [ 'mode', 'paste' ], + \ [ 'readonly', 'filename', 'modified' ] ], + \ 'right': [ [ 'lineinfo' ], + \ [ 'percent' ], + \ [ 'fileformat', 'fileencoding', 'filetype', 'kitestatus' ] ], + \ }, + \ 'component': { + \ 'readonly': '%{&readonly?"|":""}', + \ 'kitestatus': '%{kite#statusline()}', + \ }, \ 'component_function': { - \ 'gitbranch': 'FugitiveHead' - \ }, - \ 'separator': { 'left': '', 'right': '' }, - \ 'subseparator': { 'left': '', 'right': '' } - \ } + \ 'gitbranch': 'FugitiveHead' + \ }, + \ 'separator': { 'left': '', 'right': '' }, + \ 'subseparator': { 'left': '', 'right': '' } + \ } + +" +" Markdown review +" +let vim_markdown_preview_toggle=1 +let vim_markdown_preview_browser='x-www-browser' + +" +" REPL +" +let g:repl_program = { + \ 'python': ['ipython'], + \ 'default': ['zsh'], + \ 'r': ['R'], + \ 'lua': ['lua'], + \ 'vim': ['vim -e'] + \ } +let g:repl_predefine_python = { + \ 'numpy': 'import numpy as np', + \ 'matplotlib': 'from matplotlib import pyplot as plt' + \ } +let g:repl_cursor_down = 1 +let g:repl_python_automerge = 1 +let g:repl_ipython_version = '7' +let g:repl_position = 3 + +" +" Startify +" +let g:startify_custom_header = 'startify#center(startify#fortune#cowsay())' +let g:startify_session_dir = '~/.vim/session' +let g:startify_lists = [ + \ { 'type': 'files', 'header': ['MRU' . getcwd()] }, + \ { 'type': 'sessions', 'header': ['SESSIONS'] }, + \ { 'type': 'bookmarks', 'header': ['BOOKMARKS'] }, + \ ] +let g:startify_enable_special = 0 +let g:startify_files_number = 10 +let g:startify_bookmarks = [ + \ '~/.config/', + \ '~/.vimrc', + \ '~/.vim/keybindings.vim', + \ '~/.vim/plug.vim', + \ '~/.vim/functions.vim', + \ '~/Projets/latex/latex-homework' + \ ] " " Tmuxline " let g:tmuxline_preset = { - \'a' : '#S', - \'win' : ['#I', '#W'], - \'cwin' : ['#I', '#W', '#F'], - \'y' : ['%a', '%d', '%b', '%R'], - \'z' : '#H' - \ } + \'a' : '#S', + \'win' : ['#I', '#W'], + \'cwin' : ['#I', '#W', '#F'], + \'y' : ['%a', '%d', '%b', '%R'], + \'z' : '#H' + \ } let g:tmuxline_separators = { - \ 'left' : '', - \ 'left_alt': '>', - \ 'right' : '', - \ 'right_alt' : '', - \ 'space' : ' '} -let g:tmuxline_theme = 'jellybeans' + \ 'left' : '', + \ 'left_alt': '>', + \ 'right' : '', + \ 'right_alt' : '', + \ 'space' : ' ' + \ } +let g:tmuxline_theme = 'sourcerer' " -" CtrlP +" TMux navigator " -let g:ctrlp_map = '' -let g:ctrlp_cmd = 'CtrlPMixed' -let g:ctrlp_switch_buffer = 'et' +let g:tmux_navigator_no_mappings = 1 +let g:tmux_navigator_save_on_switch = 2 " " Vimroom @@ -308,3 +429,5 @@ source $HOME/.vim/functions.vim " Load keybindings from file source $HOME/.vim/keybindings.vim + +