From 53c5ef4a18d586a37456a4559fdeae1944444c9b Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 8 May 2018 11:08:08 -0700 Subject: [vim] Group settings by categories --- vimrc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 6822361..0e1d648 100644 --- a/vimrc +++ b/vimrc @@ -3,7 +3,6 @@ scriptencoding utf-8 set ttyfast " assume fast terminal and send more chars for smooth redraw set lazyredraw " don't redraw while executing macros, register and cmds -set ttymouse=sgr " like xterm2 but supporting beyond 223 columns let &statusline = '[%n] %<%F %m%r%w%y %= (%l,%c) %P of %L' set laststatus=2 " every window gets a statusline, always(=2) @@ -11,13 +10,18 @@ set scrolloff=5 " scroll edge offset (to keep some context) set shortmess=a " abbreviate all(=a) messages when possible set showcmd " show last command -set incsearch " Shows the match while typing -set nobackup " Don't create annoying backup files +" search related settings +set ignorecase smartcase " case insensitive search if all lowercase +set incsearch " incrementally move to match and highlight +set hlsearch " highlight previous search pattern + +" backups +set nobackup " don't create annoying backup files -" command line completion similar to zsh default " complete up to longest match and display the list of possible matches set wildmode=list:longest +" Plugins call plug#begin('~/.local/share/nvim/plugged') Plug 'fatih/vim-go' @@ -42,7 +46,7 @@ autocmd BufNewFile,BufRead *.json setlocal tabstop=2 softtabstop=2 expandtab " Dockerfile settings autocmd FileType dockerfile set noexpandtab -" Exit on j -imap jj +" mapping +imap jj " Exit on j syntax off -- cgit 1.4.1